Class JavaReconEnum.ECst

java.lang.Object
com.pnfsoftware.jeb.core.units.code.java.JavaReconEnum.ECst
Enclosing class:
JavaReconEnum

@Ser(oldId=65698) public static class JavaReconEnum.ECst extends Object
Reconstructed enum constant information.
  • Constructor Details

    • ECst

      public ECst(IJavaStaticField sfield, String name, int ordinal, List<IJavaExpression> adds, IJavaNew newExpressionForSubEnum)
      Create reconstructed enum constant metadata.
      Parameters:
      sfield - compiler-generated static field holding the constant
      name - enum constant name
      ordinal - enum constant ordinal
      adds - additional constructor arguments
      newExpressionForSubEnum - new-expression used for a constant-specific subclass
  • Method Details

    • getCompilerGeneratedStaticField

      public IJavaStaticField getCompilerGeneratedStaticField()
      Retrieve the compiler-generated static field holding this constant.
      Returns:
      static field
    • getName

      public String getName()
      Retrieve the enum constant name.
      Returns:
      enum constant name
    • getOrdinal

      public int getOrdinal()
      Retrieve the enum constant ordinal.
      Returns:
      enum constant ordinal
    • getArgumentList

      public List<IJavaExpression> getArgumentList()
      Retrieve additional constructor arguments.
      Returns:
      additional constructor arguments
    • getNewExpressionForSubEnum

      public IJavaNew getNewExpressionForSubEnum()
      The enumerated constant type. In most cases, it is the type of the enum itself. However, if the constant define a block of code (eg, to add or override methods), the type of the constant will be a subclass of the enumeration type.
      Returns:
      new-expression for the constant-specific subclass, or null