Represents a modifier, which is better to place in the package org.codehaus.groovy.ast
Created by Daniel.Sun on 2016/08/23.
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) @param type the modifier type, which is same as the token type |
ModifierNode
(AnnotationNode annotationNode, String text) @param annotationNode the annotation node |
Type Params | Return Type | Name 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() |
Methods inherited from class | Name |
---|---|
class ASTNode |
copyNodeMetaData, copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setNodeMetaData, setSourcePosition, visit |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
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-2018 The Apache Software Foundation. All rights reserved.