Interface IJavaDecompilableElement

All Superinterfaces:
IJavaElement
All Known Subinterfaces:
IJavaClass, IJavaField, IJavaMethod

@Ser public interface IJavaDecompilableElement extends IJavaElement
High-level Java AST interface to represent a decompilable Java element (a class, method, or field).
  • 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

      Description copied from interface: IJavaElement
      Duplicate this element.
      Specified by:
      duplicate in interface IJavaElement
      Returns:
      a (possibly) duplicated object of the same type