public final class FieldImpl extends MemberImpl implements MField
Implementation of JField and MField.
NO_ANNOTATION, NO_CLASS, NO_COMMENT, NO_CONSTRUCTOR, NO_FIELD, NO_METHOD, NO_NODE, NO_PACKAGE, NO_PARAMETER, NO_PROPERTY| Modifier and Type | Method and Description |
|---|---|
void |
accept(JVisitor visitor)
Accepts the given visitor.
|
void |
accept(MVisitor visitor) |
String |
getQualifiedName()
Returns a qualied name for this method as specified by
java.lang.reflect.Field.toString(): |
JClass |
getType()
Returns the type of this field.
|
boolean |
isFinal()
Return true if this field is final.
|
boolean |
isStatic()
Return true if this field is static.
|
boolean |
isTransient()
Return true if this field is transient.
|
boolean |
isVolatile()
Return true if this field is volatile.
|
void |
setType(JClass type) |
void |
setType(String qcname) |
void |
setUnqualifiedType(String ucname) |
getContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublic, setModifiersaddAnnotationForProxy, addLiteralAnnotation, createComment, findOrCreateAnnotation, getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment, getEditableProxy, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeAnnotation, removeCommentcompareTo, createSourcePosition, defaultName, equals, getArtifact, getClassLoader, getContext, getMutableSourcePosition, getParent, getSimpleName, getSourcePosition, hashCode, removeSourcePosition, setArtifact, setSimpleName, toStringsetModifiersaddLiteralAnnotation, createComment, findOrCreateAnnotation, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeCommentcreateSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleNamegetContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublicgetAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getCommentgetArtifact, getParent, getSimpleName, getSourcePosition, toStringpublic void setUnqualifiedType(String ucname)
setUnqualifiedType in interface MFieldpublic JClass getType()
JFieldpublic boolean isFinal()
JFieldpublic boolean isStatic()
JFieldpublic boolean isVolatile()
JFieldisVolatile in interface JFieldpublic boolean isTransient()
JFieldisTransient in interface JFieldpublic void accept(JVisitor visitor)
JElementAccepts the given visitor.
public String getQualifiedName()
JFieldReturns a qualied name for this method as specified by
java.lang.reflect.Field.toString():
Returns a string describing this Field. The format is the access modifiers for the field, if any, followed by the field type, followed by a space, followed by the fully-qualified name of the class declaring the field, followed by a period, followed by the name of the field. For example:
public static final int java.lang.Thread.MIN_PRIORITY
private int java.io.FileDescriptor.fd
The modifiers are placed in canonical order as specified by "The Java Language Specification". This is public, protected or private first, and then other modifiers in the following order: static, final, transient, volatile.
getQualifiedName in interface JElementgetQualifiedName in interface JFieldCopyright © 2010 - 2020 Adobe. All Rights Reserved