这是什么类型的Java代码?

时间:2016-03-26 20:00:24

标签: java c#

public class ParametricIndicators {
    static Method GET_PARAMETRIC_INDICATOR; //equal to a double number (as parameter)

    static {
        try {

            GET_PARAMETRIC_INDICATOR = ParametricIndicators.class.
            getDeclaredMethod("getParametricIndicator", new Class[]{ArrayList.class, short.class});

        } 
        catch (Exception e) {
            System.out.println("Predicate.static: " + e);
        }
    }
}

我是Java新手,我正在将java代码库转换为C#。我想知道这是什么类型的代码?它是吸气剂吗?

 static {
            try {

                GET_PARAMETRIC_INDICATOR = ParametricIndicators.class.
                getDeclaredMethod("getParametricIndicator", new Class[]{ArrayList.class, short.class});

            } 
            catch (Exception e) {
                System.out.println("Predicate.static: " + e);
            }
        }

0 个答案:

没有答案