|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.core.dom.ASTNode
org.eclipse.jdt.core.dom.Expression
org.eclipse.jdt.core.dom.Annotation
Abstract base class of AST nodes that represent annotations.
Annotation: NormalAnnotation MarkerAnnotation SingleMemberAnnotation
Note: This API element is only needed for dealing with Java code that uses new language features of J2SE 1.5. It is included in anticipation of J2SE 1.5 support, which is planned for the next release of Eclipse after 3.0, and may change slightly before reaching its final form.
Field Summary |
Method Summary | |
Name |
getTypeName()
Returns the annotation type name of this annotation. |
boolean |
isAnnotation()
Returns whether this extended modifier is an annotation. |
boolean |
isMarkerAnnotation()
Returns whether this is a marker annotation ( MarkerAnnotation ). |
boolean |
isModifier()
Returns whether this extended modifier is a standard modifier. |
boolean |
isNormalAnnotation()
Returns whether this is a normal annotation ( NormalAnnotation ). |
boolean |
isSingleMemberAnnotation()
Returns whether this is a single member annotation. |
void |
setTypeName(Name typeName)
Sets the annotation type name of this annotation. |
Methods inherited from class org.eclipse.jdt.core.dom.Expression |
resolveTypeBinding |
Methods inherited from class org.eclipse.jdt.core.dom.ASTNode |
accept, copySubtree, copySubtrees, delete, equals, getAST, getFlags, getLength, getLocationInParent, getNodeType, getParent, getProperty, getRoot, getStartPosition, getStructuralProperty, nodeClassForType, properties, setFlags, setProperty, setSourceRange, setStructuralProperty, structuralPropertiesForType, subtreeBytes, subtreeMatch, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public boolean isModifier()
IExtendedModifier
isModifier
in interface IExtendedModifier
true
if this is a standard modifier
(instance of Modifier
), and false
otherwiseIExtendedModifier.isModifier()
public boolean isAnnotation()
IExtendedModifier
isAnnotation
in interface IExtendedModifier
true
if this is an annotation
(instance of a subclass of Annotation
), and
false
otherwiseIExtendedModifier.isAnnotation()
public Name getTypeName()
public void setTypeName(Name typeName)
typeName
- the annotation type name
IllegalArgumentException
- if:
public boolean isNormalAnnotation()
NormalAnnotation
).
true
if this is a normal annotation,
and false
otherwisepublic boolean isMarkerAnnotation()
MarkerAnnotation
).
true
if this is a marker annotation,
and false
otherwisepublic boolean isSingleMemberAnnotation()
SingleMemberAnnotation
).
true
if this is a single member annotation,
and false
otherwise
|
Eclipse JDT Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |