public interface ProgramElementDoc extends Doc
Modifier and Type | Method and Description |
---|---|
AnnotationDesc[] |
annotations()
Get the annotations of this program element.
|
ClassDoc |
containingClass()
Get the containing class or interface of this program element.
|
PackageDoc |
containingPackage()
Get the package that this program element is contained in.
|
boolean |
isFinal()
Return true if this program element is final.
|
boolean |
isPackagePrivate()
Return true if this program element is package private.
|
boolean |
isPrivate()
Return true if this program element is private.
|
boolean |
isProtected()
Return true if this program element is protected.
|
boolean |
isPublic()
Return true if this program element is public.
|
boolean |
isStatic()
Return true if this program element is static.
|
String |
modifiers()
Get modifiers string.
|
int |
modifierSpecifier()
Get the modifier specifier integer.
|
String |
qualifiedName()
Get the fully qualified name of this program element.
|
commentText, compareTo, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isEnum, isEnumConstant, isError, isException, isField, isIncluded, isInterface, isMethod, isOrdinaryClass, name, position, seeTags, setRawCommentText, tags, tags
ClassDoc containingClass()
PackageDoc containingPackage()
String qualifiedName()
java.util.Hashtable
,
return "java.util.Hashtable".
For the method bar()
in class Foo
in the unnamed package, return "Foo.bar".
int modifierSpecifier()
Modifier
String modifiers()
public abstract int foo() { ... }return "public abstract". Annotations are not included.
AnnotationDesc[] annotations()
boolean isPublic()
boolean isProtected()
boolean isPrivate()
boolean isPackagePrivate()
boolean isStatic()
boolean isFinal()
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2015, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.