public class AnnotationNode extends ASTNode
| Modifier and Type | Field and Description | 
|---|---|
| static int | ANNOTATION_TARGET | 
| static int | CONSTRUCTOR_TARGET | 
| static int | FIELD_TARGET | 
| static int | LOCAL_VARIABLE_TARGET | 
| static int | METHOD_TARGET | 
| static int | PACKAGE_TARGET | 
| static int | PARAMETER_TARGET | 
| static int | TYPE_PARAMETER_TARGET | 
| static int | TYPE_TARGET | 
| static int | TYPE_USE_TARGET | 
| Constructor and Description | 
|---|
| AnnotationNode(ClassNode classNode) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addMember(java.lang.String name,
         Expression value) | 
| ClassNode | getClassNode() | 
| Expression | getMember(java.lang.String name) | 
| java.util.Map<java.lang.String,Expression> | getMembers() | 
| boolean | hasClassRetention()Flag corresponding to  RetentionPolicy.CLASS. | 
| boolean | hasRuntimeRetention()Flag corresponding to  RetentionPolicy. | 
| boolean | hasSourceRetention()Flag corresponding to  RetentionPolicy.SOURCE. | 
| boolean | isBuiltIn() | 
| boolean | isTargetAllowed(int target) | 
| void | setAllowedTargets(int bitmap) | 
| void | setClassRetention(boolean flag)Sets the internal flag if the current annotation has
  RetentionPolicy.CLASS. | 
| void | setMember(java.lang.String name,
         Expression value) | 
| void | setRuntimeRetention(boolean flag)Sets the internal flag of this annotation runtime retention policy. | 
| void | setSourceRetention(boolean flag)Sets the internal flag if the current annotation has 
  RetentionPolicy.SOURCE. | 
| static java.lang.String | targetToName(int target) | 
copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visitpublic static final int CONSTRUCTOR_TARGET
public static final int METHOD_TARGET
public static final int FIELD_TARGET
public static final int PARAMETER_TARGET
public static final int LOCAL_VARIABLE_TARGET
public static final int ANNOTATION_TARGET
public static final int PACKAGE_TARGET
public static final int TYPE_PARAMETER_TARGET
public static final int TYPE_USE_TARGET
public static final int TYPE_TARGET
public AnnotationNode(ClassNode classNode)
public ClassNode getClassNode()
public java.util.Map<java.lang.String,Expression> getMembers()
public Expression getMember(java.lang.String name)
public void addMember(java.lang.String name,
                      Expression value)
public void setMember(java.lang.String name,
                      Expression value)
public boolean isBuiltIn()
public boolean hasRuntimeRetention()
RetentionPolicy.public void setRuntimeRetention(boolean flag)
RetentionPolicy.RUNTIME or if false
 if the RetentionPolicy.CLASS.flag - if true then current annotation is marked as having
     RetentionPolicy.RUNTIME. If false then
     the annotation has RetentionPolicy.CLASS.public boolean hasSourceRetention()
RetentionPolicy.SOURCE.public void setSourceRetention(boolean flag)
RetentionPolicy.SOURCE.public boolean hasClassRetention()
RetentionPolicy.CLASS.public void setClassRetention(boolean flag)
RetentionPolicy.CLASS.public void setAllowedTargets(int bitmap)
public boolean isTargetAllowed(int target)
public static java.lang.String targetToName(int target)