public abstract class MemberImpl extends AnnotatedElementImpl implements MMember
Implementation of JMember and EMenber.
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 |
|---|---|
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) |
addAnnotationForProxy, addLiteralAnnotation, createComment, findOrCreateAnnotation, getAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getComment, getEditableProxy, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeAnnotation, removeCommentcompareTo, createSourcePosition, defaultName, equals, getArtifact, getClassLoader, getContext, getMutableSourcePosition, getParent, getSimpleName, getSourcePosition, hashCode, removeSourcePosition, setArtifact, setSimpleName, toStringaddLiteralAnnotation, createComment, findOrCreateAnnotation, getMutableAnnotation, getMutableAnnotations, getMutableComment, removeCommentaccept, createSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleNamegetAllJavadocTags, getAnnotation, getAnnotation, getAnnotationProxy, getAnnotations, getAnnotationValue, getCommentaccept, getArtifact, getParent, getQualifiedName, getSimpleName, getSourcePosition, toStringpublic JClass getContainingClass()
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.
getContainingClass in interface JMemberpublic int getModifiers()
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.
getModifiers in interface JMemberpublic boolean isPackagePrivate()
JMemberisPackagePrivate in interface JMemberpublic boolean isPrivate()
JMemberpublic boolean isProtected()
JMemberisProtected in interface JMemberpublic boolean isPublic()
JMemberpublic void setModifiers(int modifiers)
setModifiers in interface MMemberCopyright © 2010 - 2020 Adobe. All Rights Reserved