[Java] Class PackageNode
- org.codehaus.groovy.ast.PackageNode
Represents a package in the AST.
Constructor Summary
Constructor and description |
---|
PackageNode
(String name) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
String |
getName() | |
String |
getText() @return the text display of this package definition | |
void |
visit(GroovyCodeVisitor visitor) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class AnnotatedNode | addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode | copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
Constructor Detail
public PackageNode(String name)
Method Detail
public String getName()
public String getText()
- Returns:
- the text display of this package definition
public void visit(GroovyCodeVisitor visitor)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/org/codehaus/groovy/ast/PackageNode.html