public class ModifierNode extends ASTNode
Represents a modifier
Modifiers | Name | Description |
---|---|---|
static int |
ANNOTATION_TYPE |
|
static Map<Integer, Integer> |
MODIFIER_OPCODE_MAP |
Constructor and description |
---|
ModifierNode(Integer type) |
ModifierNode(Integer type, String text)
|
ModifierNode(AnnotationNode annotationNode, String text)
|
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
equals(Object o) |
|
public AnnotationNode |
getAnnotationNode() |
|
public Integer |
getOpcode() |
|
public String |
getText() |
|
public Integer |
getType() |
|
public int |
hashCode() |
|
public boolean |
isAnnotation() |
|
public boolean |
isDef() |
|
public boolean |
isModifier() Check whether the modifier is not an imagined modifier(annotation, def) |
|
public boolean |
isNonVisibilityModifier() |
|
public boolean |
isRepeatable() |
|
public boolean |
isVisibilityModifier() |
|
public String |
toString() |
Methods inherited from class | Name |
---|---|
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
type
- the modifier type, which is same as the token typetext
- text of the ast node
annotationNode
- the annotation nodetext
- text of the ast nodeCheck whether the modifier is not an imagined modifier(annotation, def)
Copyright © 2003-2024 The Apache Software Foundation. All rights reserved.