public String getRefClassName(int constantIndex) { try { return ((RefConstant)constantPool[constantIndex]).getClassName(this); } catch (ClassCastException ex) { throw ((IllegalStateException)new IllegalStateException("Expected RefConstant at index ["+constantIndex+"] in class ["+getName()+"]").initCause(ex)); } }
public String getRefClassName(int constantIndex) { try { return ((RefConstant)constantPool[constantIndex]).getClassName(this); } catch (ClassCastException ex) { throw ((IllegalStateException)new IllegalStateException("Expected RefConstant at index ["+constantIndex+"] in class ["+getName()+"]").initCause(ex)); } }
public String getRefClassName(int constantIndex) { try { return ((RefConstant)constantPool[constantIndex]).getClassName(this); } catch (ClassCastException ex) { throw ((IllegalStateException)new IllegalStateException("Expected RefConstant at index ["+constantIndex+"] in class ["+getName()+"]").initCause(ex)); } }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { Clazz referencedClass = refConstant.referencedClass; // Is it referring to a class member in another class? // The class member might be in another class, or // it may be referenced through another class. if (referencedClass != null && !referencedClass.equals(clazz) || !refConstant.getClassName(clazz).equals(clazz.getName())) { // The referenced class member can never be made private. refConstant.referencedMemberAccept(filteredMemberMarker); } }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { Clazz referencedClass = refConstant.referencedClass; // Is it referring to a class member in another class? // The class member might be in another class, or // it may be referenced through another class. if (referencedClass != null && !referencedClass.equals(clazz) || !refConstant.getClassName(clazz).equals(clazz.getName())) { // The referenced class member can never be made private. refConstant.referencedMemberAccept(filteredMemberMarker); } }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { Clazz referencedClass = refConstant.referencedClass; // Is it refering to a class member in another class? // The class member might be in another class, or // it may be referenced through another class. if (referencedClass != null && !referencedClass.equals(clazz) || !refConstant.getClassName(clazz).equals(clazz.getName())) { // The referenced class member can never be made private. refConstant.referencedMemberAccept(this); } }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { Clazz referencedClass = refConstant.referencedClass; // Is it referring to a class member in another class? // The class member might be in another class, or // it may be referenced through another class. if (referencedClass != null && !referencedClass.equals(clazz) || !refConstant.getClassName(clazz).equals(clazz.getName())) { // The referenced class member can never be made private. refConstant.referencedMemberAccept(filteredMemberMarker); } }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { RefConstant otherRefConstant = (RefConstant)otherConstant; result = (refConstant.getClassName(clazz) + ' ' + refConstant.getName(clazz) + ' ' + refConstant.getType(clazz)) .compareTo (otherRefConstant.getClassName(clazz) + ' ' + otherRefConstant.getName(clazz) + ' ' + otherRefConstant.getType(clazz)); }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { RefConstant otherRefConstant = (RefConstant)otherConstant; result = compare(refConstant.getClassName(clazz), refConstant.getName(clazz), refConstant.getType(clazz), otherRefConstant.getClassName(clazz), otherRefConstant.getName(clazz), otherRefConstant.getType(clazz)); }
public void visitAnyMethodrefConstant(Clazz clazz, RefConstant refConstant) { // Remember the referenced class. Note that we're interested in the // class of the method reference, not in the class in which the // method was actually found, unless it is an array type. if (ClassUtil.isInternalArrayType(refConstant.getClassName(clazz))) { // For an array type, the class will be java.lang.Object. referencedClass = refConstant.referencedClass; } else { clazz.constantPoolEntryAccept(refConstant.u2classIndex, this); } // Remember the referenced method. referencedMethodClass = refConstant.referencedClass; referencedMethod = refConstant.referencedMember; }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { RefConstant otherRefConstant = (RefConstant)otherConstant; result = compare(refConstant.getClassName(clazz), refConstant.getName(clazz), refConstant.getType(clazz), otherRefConstant.getClassName(clazz), otherRefConstant.getName(clazz), otherRefConstant.getType(clazz)); }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { RefConstant otherRefConstant = (RefConstant)otherConstant; result = compare(refConstant.getClassName(clazz), refConstant.getName(clazz), refConstant.getType(clazz), otherRefConstant.getClassName(clazz), otherRefConstant.getName(clazz), otherRefConstant.getType(clazz)); }
public void visitAnyMethodrefConstant(Clazz clazz, RefConstant refConstant) { // Remember the referenced class. Note that we're interested in the // class of the method reference, not in the class in which the // method was actually found, unless it is an array type. if (ClassUtil.isInternalArrayType(refConstant.getClassName(clazz))) { // For an array type, the class will be java.lang.Object. referencedClass = refConstant.referencedClass; } else { clazz.constantPoolEntryAccept(refConstant.u2classIndex, this); } // Remember the referenced method. referencedMethodClass = refConstant.referencedClass; referencedMethod = refConstant.referencedMember; }
public void visitAnyMethodrefConstant(Clazz clazz, RefConstant refConstant) { // Remember the referenced class. Note that we're interested in the // class of the method reference, not in the class in which the // method was actually found, unless it is an array type. if (ClassUtil.isInternalArrayType(refConstant.getClassName(clazz))) { // For an array type, the class will be java.lang.Object. referencedClass = refConstant.referencedClass; } else { clazz.constantPoolEntryAccept(refConstant.u2classIndex, this); } // Remember the referenced method. referencedMethodClass = refConstant.referencedClass; referencedMethod = refConstant.referencedMember; }
private void debug(Clazz clazz, RefConstant refConstant, Clazz referencedClass, Member referencedMember) { System.out.println("MemberReferenceFixer:"); System.out.println(" ["+clazz.getName()+"]: ["+ refConstant.getClassName(clazz)+"."+refConstant.getName(clazz)+" "+refConstant.getType(clazz)+"] -> ["+ referencedClass.getName()+"."+referencedMember.getName(referencedClass)+" "+referencedMember.getDescriptor(referencedClass)+"]"); } }
private void debug(Clazz clazz, RefConstant refConstant, Clazz referencedClass, Member referencedMember) { System.out.println("MemberReferenceFixer:"); System.out.println(" ["+clazz.getName()+"]: ["+ refConstant.getClassName(clazz)+"."+refConstant.getName(clazz)+" "+refConstant.getType(clazz)+"] -> ["+ referencedClass.getName()+"."+referencedMember.getName(referencedClass)+" "+referencedMember.getDescriptor(referencedClass)+"]"); } }
private void debug(Clazz clazz, RefConstant refConstant, Clazz referencedClass, Member referencedMember) { System.out.println("MemberReferenceFixer:"); System.out.println(" ["+clazz.getName()+"]: ["+ refConstant.getClassName(clazz)+"."+refConstant.getName(clazz)+" "+refConstant.getType(clazz)+"] -> ["+ referencedClass.getName()+"."+referencedMember.getName(referencedClass)+" "+referencedMember.getDescriptor(referencedClass)+"]"); } }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { // Remember the referenced class. Note that we're interested in the // class of the invocation, not in the class in which the member was // actually found, unless it is an array type. if (ClassUtil.isInternalArrayType(refConstant.getClassName(clazz))) { // For an array type, the class will be java.lang.Object. referencedClass = refConstant.referencedClass; } else { // Remember the referenced class. clazz.constantPoolEntryAccept(refConstant.u2classIndex, this); } // Fix the access flags of referenced class member. super.visitAnyRefConstant(clazz, refConstant); }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { // Remember the referenced class. Note that we're interested in the // class of the invocation, not in the class in which the member was // actually found, unless it is an array type. if (ClassUtil.isInternalArrayType(refConstant.getClassName(clazz))) { // For an array type, the class will be java.lang.Object. referencedClass = refConstant.referencedClass; } else { // Remember the referenced class. clazz.constantPoolEntryAccept(refConstant.u2classIndex, this); } // Fix the access flags of referenced class member. super.visitAnyRefConstant(clazz, refConstant); }
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant) { // Remember the referenced class. Note that we're interested in the // class of the invocation, not in the class in which the member was // actually found, unless it is an array type. if (ClassUtil.isInternalArrayType(refConstant.getClassName(clazz))) { // For an array type, the class will be java.lang.Object. referencedClass = refConstant.referencedClass; } else { // Remember the referenced class. clazz.constantPoolEntryAccept(refConstant.u2classIndex, this); } // Fix the access flags of referenced class member. super.visitAnyRefConstant(clazz, refConstant); }