Class JavaReconEnum.ECst
java.lang.Object
com.pnfsoftware.jeb.core.units.code.java.JavaReconEnum.ECst
- Enclosing class:
JavaReconEnum
Reconstructed enum constant information.
-
Constructor Summary
ConstructorsConstructorDescriptionECst(IJavaStaticField sfield, String name, int ordinal, List<IJavaExpression> adds, IJavaNew newExpressionForSubEnum) Create reconstructed enum constant metadata. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve additional constructor arguments.Retrieve the compiler-generated static field holding this constant.getName()Retrieve the enum constant name.The enumerated constant type.intRetrieve the enum constant ordinal.
-
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 constantname- enum constant nameordinal- enum constant ordinaladds- additional constructor argumentsnewExpressionForSubEnum- new-expression used for a constant-specific subclass
-
-
Method Details
-
getCompilerGeneratedStaticField
Retrieve the compiler-generated static field holding this constant.- Returns:
- static field
-
getName
Retrieve the enum constant name.- Returns:
- enum constant name
-
getOrdinal
public int getOrdinal()Retrieve the enum constant ordinal.- Returns:
- enum constant ordinal
-
getArgumentList
Retrieve additional constructor arguments.- Returns:
- additional constructor arguments
-
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
-