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 voidaccept(JVisitor visitor)Accepts the given visitor.voidaccept(MVisitor visitor)java.lang.StringgetQualifiedName()Returns a qualied name for this method as specified byjava.lang.reflect.Field.toString():JClassgetType()Returns the type of this field.booleanisFinal()Return true if this field is final.booleanisStatic()Return true if this field is static.booleanisTransient()Return true if this field is transient.booleanisVolatile()Return true if this field is volatile.voidsetType(java.lang.String qcname)voidsetType(JClass type)voidsetUnqualifiedType(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:
setUnqualifiedTypein interfaceMField
-
getType
public JClass getType()
Description copied from interface:JFieldReturns the type of this field.
-
isFinal
public boolean isFinal()
Description copied from interface:JFieldReturn true if this field is final.
-
isStatic
public boolean isStatic()
Description copied from interface:JFieldReturn true if this field is static.
-
isVolatile
public boolean isVolatile()
Description copied from interface:JFieldReturn true if this field is volatile.- Specified by:
isVolatilein interfaceJField
-
isTransient
public boolean isTransient()
Description copied from interface:JFieldReturn true if this field is transient.- Specified by:
isTransientin interfaceJField
-
accept
public void accept(JVisitor visitor)
Description copied from interface:JElementAccepts the given visitor.
-
getQualifiedName
public java.lang.String getQualifiedName()
Description copied from interface: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.
- Specified by:
getQualifiedNamein interfaceJElement- Specified by:
getQualifiedNamein interfaceJField
-
-