public class ModifierNode extends ASTNode
Created by Daniel.Sun on 2016/08/23.
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION_TYPE |
static Map<Integer,Integer> |
MODIFIER_OPCODE_MAP |
Constructor and Description |
---|
ModifierNode(AnnotationNode annotationNode,
String text) |
ModifierNode(Integer type) |
ModifierNode(Integer type,
String text) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AnnotationNode |
getAnnotationNode() |
Integer |
getOpcode() |
String |
getText() |
Integer |
getType() |
int |
hashCode() |
boolean |
isAnnotation() |
boolean |
isDef() |
boolean |
isModifier()
Check whether the modifier is not an imagined modifier(annotation, def)
|
boolean |
isNonVisibilityModifier() |
boolean |
isRepeatable() |
boolean |
isVisibilityModifier() |
String |
toString() |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
public static final int ANNOTATION_TYPE
public ModifierNode(Integer type)
public ModifierNode(Integer type, String text)
type
- the modifier type, which is same as the token typetext
- text of the ast nodepublic ModifierNode(AnnotationNode annotationNode, String text)
annotationNode
- the annotation nodetext
- text of the ast nodepublic boolean isModifier()
public boolean isVisibilityModifier()
public boolean isNonVisibilityModifier()
public boolean isAnnotation()
public boolean isDef()
public Integer getType()
public Integer getOpcode()
public boolean isRepeatable()
public AnnotationNode getAnnotationNode()