Interface IJavaInstanceField
- All Superinterfaces:
IJavaElement,IJavaExpression,IJavaLeftExpression
Java AST interface to represent an instance field.
This interface should not be confused with IJavaField definition objects.
Examples:
this.x = 123;
^^^^^^
z = someobject.y;
^^^^^^^^^^^^
- See Also:
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
FLAG_BUILT, FLAG_FIELD_REFERENCES_OUTERCLASS, FLAG_LAMBDA_CLASS, FLAG_LAMBDA_IMPL, FLAG_OPTIONAL_RENDERING, FLAG_SECOND_PARAMETER_IS_OUTER_REF, FLAG_STICKY -
Method Summary
Modifier and TypeMethodDescriptionDuplicate this element.getField()Get the field definition object.Get the original field simple name.Get the original field jvm name (fully qualified canonical name).Get the instance expression, which is the object that contains the field.booleanvoidsetInstance(IJavaExpression instance) Set the instance.Methods inherited from interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
addFlags, addTag, canCauseException, collectAllPhysicalOffsets, generate, getData, getElementType, getFlags, getOrigin, getPhysicalMethodIndex, getPhysicalOffset, getReconAnon, getReconEnum, getReconEnummap, getReconLambda, getSubElements, getTags, hasFlags, hasPhysicalMethodIndex, hasPhysicalOffset, isReconArtifact, removeFlags, removeTag, replaceSubElement, setData, setFlags, setLambdaRecon, setOrigin, setPhysicalMethodIndex, setPhysicalOffset, setReconAnon, setReconEnum, setReconEnummap, toShortString, visitDepthPost, visitDepthPost, visitDepthPost, visitDepthPost, visitDepthPre, visitDepthPre, visitDepthPre
-
Method Details
-
getInstance
IJavaExpression getInstance()Get the instance expression, which is the object that contains the field.- Returns:
- the instance expression
-
setInstance
Set the instance.- Parameters:
instance- mandatory instance
-
getFieldSignature
String getFieldSignature()Get the original field jvm name (fully qualified canonical name).- Returns:
- the field signature, null if an array length
-
getFieldName
String getFieldName()Get the original field simple name.- Returns:
-
isPseudoFieldArrayLength
boolean isPseudoFieldArrayLength()- Returns:
-
getField
IJavaField getField()Get the field definition object.- Returns:
- the field object
-
duplicate
IJavaInstanceField duplicate()Description copied from interface:IJavaElementDuplicate this element.- Specified by:
duplicatein interfaceIJavaElement- Specified by:
duplicatein interfaceIJavaExpression- Specified by:
duplicatein interfaceIJavaLeftExpression- Returns:
- a (possibly) duplicated object of the same type
-