public class ModifierNode extends ASTNode
Created by Daniel.Sun on 2016/08/23.
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION_TYPE |
static java.util.Map<java.lang.Integer,java.lang.Integer> |
MODIFIER_OPCODE_MAP |
Constructor and Description |
---|
ModifierNode(AnnotationNode annotationNode,
java.lang.String text) |
ModifierNode(java.lang.Integer type) |
ModifierNode(java.lang.Integer type,
java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
AnnotationNode |
getAnnotationNode() |
java.lang.Integer |
getOpcode() |
java.lang.String |
getText() |
java.lang.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() |
java.lang.String |
toString() |
copyNodeMetaData, copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setNodeMetaData, setSourcePosition, visit
public static final int ANNOTATION_TYPE
public static final java.util.Map<java.lang.Integer,java.lang.Integer> MODIFIER_OPCODE_MAP
public ModifierNode(java.lang.Integer type)
public ModifierNode(java.lang.Integer type, java.lang.String text)
type
- the modifier type, which is same as the token typetext
- text of the ast nodepublic ModifierNode(AnnotationNode annotationNode, java.lang.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 java.lang.Integer getType()
public java.lang.Integer getOpcode()
public boolean isRepeatable()
public AnnotationNode getAnnotationNode()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object