| java.lang.Object com.sun.tools.javadoc.DocImpl com.sun.tools.javadoc.ProgramElementDocImpl
All known Subclasses: com.sun.tools.javadoc.ClassDocImpl, com.sun.tools.javadoc.MemberDocImpl,
ProgramElementDocImpl | abstract public class ProgramElementDocImpl extends DocImpl implements ProgramElementDoc(Code) | | Represents a java program element: class, interface, field,
constructor, or method.
This is an abstract class dealing with information common to
these elements.
See Also: MemberDocImpl See Also: ClassDocImpl author: Robert Field author: Neal Gafter (rewrite) author: Scott Seligman (generics, enums, annotations) |
annotations | public AnnotationDesc[] annotations()(Code) | | Get the annotations of this program element.
Return an empty array if there are none.
|
containingClass | public ClassDoc containingClass()(Code) | | Get the containing class of this program element.
a ClassDocImpl for this element's containing class.If this is a class with no outer class, return null. |
containingPackage | public PackageDoc containingPackage()(Code) | | Return the package that this member is contained in.
Return "" if in unnamed package.
|
getContainingClass | abstract protected ClassSymbol getContainingClass()(Code) | | Subclasses override to identify the containing class
|
getFlags | abstract protected long getFlags()(Code) | | Returns the flags in terms of javac's flags
|
getModifiers | protected int getModifiers()(Code) | | Returns the modifier flags in terms of java.lang.reflect.Modifier.
|
isFinal | public boolean isFinal()(Code) | | Return true if this program element is final
|
isPackagePrivate | public boolean isPackagePrivate()(Code) | | Return true if this program element is package private
|
isPrivate | public boolean isPrivate()(Code) | | Return true if this program element is private
|
isProtected | public boolean isProtected()(Code) | | Return true if this program element is protected
|
isPublic | public boolean isPublic()(Code) | | Return true if this program element is public
|
isStatic | public boolean isStatic()(Code) | | Return true if this program element is static
|
modifiers | public String modifiers()(Code) | | Get modifiers string.
Example, for:
public abstract int foo() { ... }
modifiers() would return:
'public abstract'
Annotations are not included.
|
|
|