Class MemberImpl
- 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
-
- All Implemented Interfaces:
java.lang.Comparable
,JAnnotatedElement
,JElement
,JMember
,MAnnotatedElement
,MElement
,MMember
- Direct Known Subclasses:
ClassImpl
,FieldImpl
,InvokableImpl
,ParameterImpl
public abstract class MemberImpl extends AnnotatedElementImpl implements MMember
Implementation of JMember and EMenber.
-
-
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 JClass
getContainingClass()
Returns a representation of the class which contains this member.int
getModifiers()
Returns the modifiers specifier.boolean
isPackagePrivate()
Return true if this member is package private (i.e.boolean
isPrivate()
Return true if this member is private.boolean
isProtected()
Return true if this member is protected.boolean
isPublic()
Return true if this member is public.void
setModifiers(int modifiers)
-
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
accept, getArtifact, getParent, getQualifiedName, getSimpleName, getSourcePosition, toString
-
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
accept, createSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleName
-
-
-
-
Method Detail
-
getContainingClass
public JClass getContainingClass()
Description copied from interface:JMember
Returns a representation of the class which contains this member. Note that if this member is an inner class, this method returns the class in which this class is declared (i.e. 'outer'). If this member is a top-level class, this method will always return null.
- Specified by:
getContainingClass
in interfaceJMember
-
getModifiers
public int getModifiers()
Description copied from interface:JMember
Returns the modifiers specifier. This is a bit field exactly like those returned by java.lang.Class.getModifiers() and can be manipulated using java.lang.reflect.Modifier in the same way.
- Specified by:
getModifiers
in interfaceJMember
-
isPackagePrivate
public boolean isPackagePrivate()
Description copied from interface:JMember
Return true if this member is package private (i.e. the default access protection level).- Specified by:
isPackagePrivate
in interfaceJMember
-
isPrivate
public boolean isPrivate()
Description copied from interface:JMember
Return true if this member is private. Equivalent to calling Modifier.isPrivate(member.getModifiers()).
-
isProtected
public boolean isProtected()
Description copied from interface:JMember
Return true if this member is protected. Equivalent to calling Modifier.isProtected(member.getModifiers()).- Specified by:
isProtected
in interfaceJMember
-
isPublic
public boolean isPublic()
Description copied from interface:JMember
Return true if this member is public. Equivalent to calling Modifier.isProtected(member.getModifiers()).
-
setModifiers
public void setModifiers(int modifiers)
- Specified by:
setModifiers
in interfaceMMember
-
-