public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Check the referenced class. classConstant.referencedClassAccept(this); }
/** * Returns the string of the Utf8Constant at the specified index in the * reusable constant pool. */ private String getString(int constantIndex) { return ((Utf8Constant)constantPool[constantIndex]).getString(); }
public void visitStringConstant(Clazz clazz, StringConstant stringConstant) { referencingClass = clazz; referencedClass = stringConstant.referencedClass; // Make sure the access flags of the referenced class or class member, // if any, are acceptable. stringConstant.referencedClassAccept(this); stringConstant.referencedMemberAccept(this); }
public void visitMethodrefConstant(Clazz clazz, MethodrefConstant methodrefConstant) { // Check the referenced constructor descriptor. descriptor = methodrefConstant.getType(clazz); methodrefConstant.referencedMemberAccept(this); }
public void visitStringConstant(Clazz clazz, StringConstant stringConstant) { // Mark the referenced method, if any. stringConstant.referencedMemberAccept(this); }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Mark the referenced field. fieldrefConstant.referencedMemberAccept(this); }
public void superClassConstantAccept(ConstantVisitor constantVisitor) { if (u2superClass != 0) { constantPool[u2superClass].accept(this, constantVisitor); } }
/** * Switches to a byte array representation of the UTF-8 data. */ private void switchToByteArrayRepresentation() throws UnsupportedEncodingException { if (bytes == null) { bytes = getByteArrayRepresentation(string); string = null; } }
/** * Switches to a String representation of the UTF-8 data. */ private void switchToStringRepresentation() throws UnsupportedEncodingException { if (string == null) { string = getStringRepresentation(bytes); bytes = null; } }
public void visitAnyMethodrefConstant(Clazz clazz, RefConstant refConstant) { // Mark the referenced method. refConstant.referencedMemberAccept(this); }
public void visitStringConstant(Clazz clazz, StringConstant stringConstant) { // Visit the referenced class from the Class.forName construct, if any. stringConstant.referencedClassAccept(classVisitor); } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Make sure the outer class has a name. classConstant.referencedClassAccept(this); }
public void visitStringConstant(Clazz clazz, StringConstant stringConstant) { // Mark the referenced field, if any. stringConstant.referencedMemberAccept(this); }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // We'll have to assume accessing an unknown field has side effects. hasSideEffects = true; // Check the referenced field. fieldrefConstant.referencedMemberAccept(this); }
public void interfaceConstantsAccept(ConstantVisitor constantVisitor) { for (int index = 0; index < u2interfacesCount; index++) { constantPool[u2interfaces[index]].accept(this, constantVisitor); } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Visit the referenced class from the .class construct. classConstant.referencedClassAccept(classVisitor); } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Make sure the outer class name is kept as well. classConstant.referencedClassAccept(this); }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { referencingClass = clazz; // Make sure the access flags of the referenced class are acceptable. classConstant.referencedClassAccept(this); }