Interface IJavaDecompilableElement
- All Superinterfaces:
IJavaElement
- All Known Subinterfaces:
IJavaClass
,IJavaField
,IJavaMethod
High-level Java AST interface to represent a decompilable Java element (a class, method, or
field).
-
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.Retrieve the global Java decompilation context for this element.getName()
Get this element's name.Get this element's signature.default boolean
isBuilt()
Convenience method used to check FLAG_BUILT.boolean
Determine whether this element is internal (defined) or external (not defined).default boolean
Convenience method used to check FLAG_OPTIONAL_RENDERING.default void
Convenience method used to set FLAG_BUILT.default void
Convenience method used to set FLAG_OPTIONAL_RENDERING.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
-
getGlobalContext
IJavaGlobalContext getGlobalContext()Retrieve the global Java decompilation context for this element.- Returns:
-
getName
String getName()Get this element's name.- Returns:
-
getSignature
String getSignature()Get this element's signature.- Returns:
-
isExternal
boolean isExternal()Determine whether this element is internal (defined) or external (not defined). External elements cannot be generated.- Returns:
-
markBuilt
default void markBuilt()Convenience method used to set FLAG_BUILT. -
isBuilt
default boolean isBuilt()Convenience method used to check FLAG_BUILT.- Returns:
-
markOptionalRendering
default void markOptionalRendering()Convenience method used to set FLAG_OPTIONAL_RENDERING. -
isOptionalRendering
default boolean isOptionalRendering()Convenience method used to check FLAG_OPTIONAL_RENDERING.- Returns:
-
duplicate
IJavaDecompilableElement duplicate()Description copied from interface:IJavaElement
Duplicate this element.- Specified by:
duplicate
in interfaceIJavaElement
- Returns:
- a (possibly) duplicated object of the same type
-