Пример #1
0
 public JavaArrayClass(String className, JavaClass et, int dimension) {
   super(
       et.getClassNameIndex(),
       et.getSuperclassNameIndex(),
       et.getFileName(),
       et.getMajor(),
       et.getMinor(),
       et.getAccessFlags(),
       et.getConstantPool(),
       et.getInterfaceIndices(),
       et.getFields(),
       et.getMethods(),
       et.getAttributes());
   this.dimension = dimension;
   this.className = className;
   isBasicType = false;
 }
Пример #2
0
 /** Checks if classfile was compiled for pre 1.5 target */
 public static boolean preTiger(JavaClass jclass) {
   return jclass.getMajor() < JDK15_MAJOR
       || (jclass.getMajor() == JDK15_MAJOR && jclass.getMinor() < JDK15_MINOR);
 }