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 JClassgetContainingClass()Returns a representation of the class which contains this member.intgetModifiers()Returns the modifiers specifier.booleanisPackagePrivate()Return true if this member is package private (i.e.booleanisPrivate()Return true if this member is private.booleanisProtected()Return true if this member is protected.booleanisPublic()Return true if this member is public.voidsetModifiers(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:JMemberReturns 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:
getContainingClassin interfaceJMember
-
getModifiers
public int getModifiers()
Description copied from interface:JMemberReturns 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:
getModifiersin interfaceJMember
-
isPackagePrivate
public boolean isPackagePrivate()
Description copied from interface:JMemberReturn true if this member is package private (i.e. the default access protection level).- Specified by:
isPackagePrivatein interfaceJMember
-
isPrivate
public boolean isPrivate()
Description copied from interface:JMemberReturn true if this member is private. Equivalent to calling Modifier.isPrivate(member.getModifiers()).
-
isProtected
public boolean isProtected()
Description copied from interface:JMemberReturn true if this member is protected. Equivalent to calling Modifier.isProtected(member.getModifiers()).- Specified by:
isProtectedin interfaceJMember
-
isPublic
public boolean isPublic()
Description copied from interface:JMemberReturn true if this member is public. Equivalent to calling Modifier.isProtected(member.getModifiers()).
-
setModifiers
public void setModifiers(int modifiers)
- Specified by:
setModifiersin interfaceMMember
-
-