oracle.jdeveloper.jot
Interface JotMember
- All Superinterfaces:
- JotElement, JotHasModifiers
- All Known Subinterfaces:
- JotClassInitializer, JotConstructor, JotFieldDeclaration, JotInnerClass, JotMethod
- public interface JotMember
- extends JotHasModifiers, JotElement
The JotMember
interface represents elements that are
members of a class. The types of members supported are fields,
methods, constructors, and class or instance initializers.
- Since:
- 5.0
- See Also:
JotClass
,
JotField
,
JotMethod
,
JotConstructor
,
JotClassInitializer
,
"Sections 8 and 9 of the Java Language Specification"
Method Summary |
JotClass |
getDeclaringClass()
Retrieves the class that contains this member declaration. |
boolean |
isDeprecated()
In a source class, a constructor, method, or field is considered
deprecated if the associated Javadoc has been marked '@deprecated'. |
boolean |
isSource()
Whether this JotMember represents a member in a source class
or in a compiled class. |
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
getDeclaringClass
public JotClass getDeclaringClass()
- Retrieves the class that contains this member declaration.
- Returns:
- a class or interface.
isDeprecated
public boolean isDeprecated()
- In a source class, a constructor, method, or field is considered
deprecated if the associated Javadoc has been marked '@deprecated'. In
a compiled class, a constructor, method, or field is considered
deprecated if the deprecated attribute is set for that member.
All other members are considered to be not deprecated.
- Returns:
- true if this
JotMember
is deprecated.
isSource
public boolean isSource()
- Whether this
JotMember
represents a member in a source class
or in a compiled class.
- Returns:
- true if this
JotMember
is contained in a source file,
or false if the file is compiled.