public interface JavaField extends JavaAnnotatedElement, JavaMember, JavaModel
Field
, providing the most important methods.
Where the original Field is using an Array, this model is using a List
.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCodeBlock()
The in-code representation of this field.
|
java.util.List<Expression> |
getEnumConstantArguments() |
JavaClass |
getEnumConstantClass() |
java.lang.String |
getInitializationExpression()
Get the original expression used to initialize the field.
|
JavaClass |
getType()
Equivalent of
Field.getType() |
boolean |
isEnumConstant()
Equivalent of
Field.isEnumConstant() |
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
getLineNumber
JavaClass getType()
Field.getType()
null
.java.lang.String getCodeBlock()
getCodeBlock
in interface JavaModel
java.lang.String getInitializationExpression()
boolean isEnumConstant()
Field.isEnumConstant()
true
if this field is an enum constant, otherwise false
JavaClass getEnumConstantClass()
java.util.List<Expression> getEnumConstantArguments()