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 booleanisBuilt()Convenience method used to check FLAG_BUILT.booleanDetermine whether this element is internal (defined) or external (not defined).default booleanConvenience method used to check FLAG_OPTIONAL_RENDERING.default voidConvenience method used to set FLAG_BUILT.default voidConvenience method used to clear FLAG_BUILT.default voidConvenience 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:
- global Java context, or null if unavailable
-
getName
String getName()Get this element's name.- Returns:
- element name
-
getSignature
String getSignature()Get this element's signature.- Returns:
- element signature
-
isExternal
boolean isExternal()Determine whether this element is internal (defined) or external (not defined). External elements cannot be generated.- Returns:
- true if this element is external
-
markBuilt
default void markBuilt()Convenience method used to set FLAG_BUILT. -
markNotBuilt
default void markNotBuilt()Convenience method used to clear FLAG_BUILT. -
isBuilt
default boolean isBuilt()Convenience method used to check FLAG_BUILT.- Returns:
- true if this element is marked as built
-
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:
- true if this element is marked for optional rendering
-
duplicate
IJavaDecompilableElement duplicate()Description copied from interface:IJavaElementDuplicate this element.- Specified by:
duplicatein interfaceIJavaElement- Returns:
- a (possibly) duplicated object of the same type
-