Class FieldImpl
- java.lang.Object
-
- org.apache.xmlbeans.impl.jam.internal.elements.ElementImpl
-
- org.apache.xmlbeans.impl.jam.internal.elements.AnnotatedElementImpl
-
- org.apache.xmlbeans.impl.jam.internal.elements.MemberImpl
-
- org.apache.xmlbeans.impl.jam.internal.elements.FieldImpl
-
- All Implemented Interfaces:
java.lang.Comparable
,JAnnotatedElement
,JElement
,JField
,JMember
,MAnnotatedElement
,MElement
,MField
,MMember
public final class FieldImpl extends MemberImpl implements MField
Implementation of JField and MField.
-
-
Field Summary
-
Fields inherited from class org.apache.xmlbeans.impl.jam.internal.elements.ElementImpl
NO_ANNOTATION, NO_CLASS, NO_COMMENT, NO_CONSTRUCTOR, NO_FIELD, NO_METHOD, NO_NODE, NO_PACKAGE, NO_PARAMETER, NO_PROPERTY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(JVisitor visitor)
Accepts the given visitor.void
accept(MVisitor visitor)
java.lang.String
getQualifiedName()
Returns a qualied name for this method as specified byjava.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(java.lang.String qcname)
void
setType(JClass type)
void
setUnqualifiedType(java.lang.String ucname)
-
Methods inherited from class org.apache.xmlbeans.impl.jam.internal.elements.MemberImpl
getContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublic, setModifiers
-
Methods inherited from class org.apache.xmlbeans.impl.jam.internal.elements.AnnotatedElementImpl
addAnnotationForProxy, addLiteralAnnotation, createComment, findOrCreateAnnotation, getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment, getEditableProxy, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeAnnotation, removeComment
-
Methods inherited from class org.apache.xmlbeans.impl.jam.internal.elements.ElementImpl
compareTo, createSourcePosition, defaultName, equals, getArtifact, getClassLoader, getContext, getMutableSourcePosition, getParent, getSimpleName, getSourcePosition, hashCode, removeSourcePosition, setArtifact, setSimpleName, toString
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.JAnnotatedElement
getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.JElement
getArtifact, getParent, getSimpleName, getSourcePosition, toString
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.JMember
getContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublic
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.mutable.MAnnotatedElement
addLiteralAnnotation, createComment, findOrCreateAnnotation, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeComment
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.mutable.MElement
createSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleName
-
Methods inherited from interface org.apache.xmlbeans.impl.jam.mutable.MMember
setModifiers
-
-
-
-
Method Detail
-
setUnqualifiedType
public void setUnqualifiedType(java.lang.String ucname)
- Specified by:
setUnqualifiedType
in interfaceMField
-
getType
public JClass getType()
Description copied from interface:JField
Returns the type of this field.
-
isFinal
public boolean isFinal()
Description copied from interface:JField
Return true if this field is final.
-
isStatic
public boolean isStatic()
Description copied from interface:JField
Return true if this field is static.
-
isVolatile
public boolean isVolatile()
Description copied from interface:JField
Return true if this field is volatile.- Specified by:
isVolatile
in interfaceJField
-
isTransient
public boolean isTransient()
Description copied from interface:JField
Return true if this field is transient.- Specified by:
isTransient
in interfaceJField
-
accept
public void accept(JVisitor visitor)
Description copied from interface:JElement
Accepts the given visitor.
-
getQualifiedName
public java.lang.String getQualifiedName()
Description copied from interface: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.
- Specified by:
getQualifiedName
in interfaceJElement
- Specified by:
getQualifiedName
in interfaceJField
-
-