java.lang.Object
io.github.sugarcubes.cloner.bytecode.FieldSpec
Field of a generated class, or added to a class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the access flags.Returns the constant value.Returns the field descriptor.getName()Returns the field name.
-
Constructor Details
-
FieldSpec
Creates the field.- Parameters:
access- access flags (Modifiervalues)name- field namedescriptor- field descriptor
-
FieldSpec
Creates a static final field with a constant value (theConstantValueattribute).
-
-
Method Details
-
getAccess
public int getAccess()Returns the access flags.- Returns:
- access flags
-
getName
Returns the field name.- Returns:
- field name
-
getDescriptor
Returns the field descriptor.- Returns:
- field descriptor
-
getConstantValue
Returns the constant value.- Returns:
- constant value or
null
-