public class ConstantLookupVisitor extends java.lang.Object implements ConstantVisitor
ConstantVisitor
is used for field operations and the instanceOf
predicate.
The result
stores the fully qualified name for either a class or a field. The resultSize
is the size of the referenced type in bytes.Modifier and Type | Field and Description |
---|---|
boolean |
isStatic |
java.lang.String |
result |
Clazz |
resultClazz |
int |
resultSize |
Constructor and Description |
---|
ConstantLookupVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
resetResult() |
void |
visitClassConstant(Clazz clazz,
ClassConstant classConstant) |
void |
visitFieldrefConstant(Clazz clazz,
FieldrefConstant fieldrefConstant) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnyConstant, visitAnyMethodrefConstant, visitAnyRefConstant, visitDoubleConstant, visitDynamicConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
public java.lang.String result
public Clazz resultClazz
public int resultSize
public boolean isStatic
public void resetResult()
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant)
visitFieldrefConstant
in interface ConstantVisitor
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
visitClassConstant
in interface ConstantVisitor