Package proguard.analysis.cpa.jvm.util
Class ConstantLookupVisitor
- java.lang.Object
-
- proguard.analysis.cpa.jvm.util.ConstantLookupVisitor
-
- All Implemented Interfaces:
ConstantVisitor
public class ConstantLookupVisitor extends java.lang.Object implements ConstantVisitor
ThisConstantVisitor
is used for field operations and theinstanceOf
predicate. Theresult
stores the fully qualified name for either a class or a field. TheresultSize
is the size of the referenced type in bytes.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
isStatic
java.lang.String
result
Clazz
resultClazz
int
resultSize
-
Constructor Summary
Constructors Constructor Description ConstantLookupVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
resetResult()
void
visitClassConstant(Clazz clazz, ClassConstant classConstant)
void
visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.constant.visitor.ConstantVisitor
visitAnyConstant, visitAnyMethodrefConstant, visitAnyRefConstant, visitDoubleConstant, visitDynamicConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
-
-
-
-
Field Detail
-
result
public java.lang.String result
-
resultClazz
public Clazz resultClazz
-
resultSize
public int resultSize
-
isStatic
public boolean isStatic
-
-
Method Detail
-
resetResult
public void resetResult()
-
visitFieldrefConstant
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant)
- Specified by:
visitFieldrefConstant
in interfaceConstantVisitor
-
visitClassConstant
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
- Specified by:
visitClassConstant
in interfaceConstantVisitor
-
-