Package org.codehaus.groovy.ast
Class ModifierNode
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.ModifierNode
- All Implemented Interfaces:
- NodeMetaDataHandler
Represents a modifier
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final int
- 
Constructor SummaryConstructorsConstructorDescriptionModifierNode(Integer type) ModifierNode(Integer type, String text) ModifierNode(AnnotationNode annotationNode, String text) 
- 
Method SummaryMethods inherited from class org.codehaus.groovy.ast.ASTNodecopyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visitMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.codehaus.groovy.ast.NodeMetaDataHandlercopyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
- 
Field Details- 
ANNOTATION_TYPEpublic static final int ANNOTATION_TYPE- See Also:
 
- 
MODIFIER_OPCODE_MAP
 
- 
- 
Constructor Details- 
ModifierNode
- 
ModifierNode- Parameters:
- type- the modifier type, which is same as the token type
- text- text of the ast node
 
- 
ModifierNode- Parameters:
- annotationNode- the annotation node
- text- text of the ast node
 
 
- 
- 
Method Details- 
isModifierpublic boolean isModifier()Check whether the modifier is not an imagined modifier(annotation, def)
- 
isVisibilityModifierpublic boolean isVisibilityModifier()
- 
isNonVisibilityModifierpublic boolean isNonVisibilityModifier()
- 
isAnnotationpublic boolean isAnnotation()
- 
isDefpublic boolean isDef()
- 
getType
- 
getOpcode
- 
isRepeatablepublic boolean isRepeatable()
- 
getText
- 
getAnnotationNode
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-