Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Type | Name and description |
---|---|
void |
copyNodeMetaData(ASTNode other) Copies all node meta data from the other node to this one |
int |
getColumnNumber() |
int |
getLastColumnNumber() |
int |
getLastLineNumber() |
int |
getLineNumber() |
T |
getNodeMetaData(Object key) Gets the node meta data. |
Map<?, ?> |
getNodeMetaData() Returns an unmodifiable view of the current node metadata. |
String |
getText() |
Object |
putNodeMetaData(Object key, Object value) Sets the node meta data but allows overwriting values. |
void |
removeNodeMetaData(Object key) Removes a node meta data entry. |
void |
setColumnNumber(int columnNumber) |
void |
setLastColumnNumber(int lastColumnNumber) |
void |
setLastLineNumber(int lastLineNumber) |
void |
setLineNumber(int lineNumber) |
void |
setNodeMetaData(Object key, Object value) Sets the node meta data. |
void |
setSourcePosition(ASTNode node) Sets the source position using another ASTNode. |
void |
visit(GroovyCodeVisitor visitor) |
Copies all node meta data from the other node to this one
other
- - the other nodeGets the node meta data.
key
- - the meta data keyReturns an unmodifiable view of the current node metadata.
Sets the node meta data but allows overwriting values.
key
- - the meta data keyvalue
- - the meta data valueRemoves a node meta data entry.
key
- - the meta data keySets the node meta data.
key
- - the meta data keyvalue
- - the meta data valueSets the source position using another ASTNode. The sourcePosition consists of a line/column pair for the start and a line/column pair for the end of the expression or statement
node
- - the node used to configure the position information