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, setModifiers
addAnnotationForProxy, addLiteralAnnotation, createComment, findOrCreateAnnotation, getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment, getEditableProxy, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeAnnotation, removeComment
compareTo, createSourcePosition, defaultName, equals, getArtifact, getClassLoader, getContext, getMutableSourcePosition, getParent, getSimpleName, getSourcePosition, hashCode, removeSourcePosition, setArtifact, setSimpleName, toString
setModifiers
addLiteralAnnotation, createComment, findOrCreateAnnotation, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeComment
createSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleName
getContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublic
getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment
getArtifact, getParent, getSimpleName, getSourcePosition, toString
public void setUnqualifiedType(String ucname)
setUnqualifiedType
in interface MField
public JClass getType()
JField
public boolean isFinal()
JField
public boolean isStatic()
JField
public boolean isVolatile()
JField
isVolatile
in interface JField
public boolean isTransient()
JField
isTransient
in interface JField
public void accept(JVisitor visitor)
JElement
Accepts the given visitor.
public String getQualifiedName()
JField
Returns 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 JElement
getQualifiedName
in interface JField
Copyright © 2010 - 2020 Adobe. All Rights Reserved