@PublicApi public abstract class AbstractNode<T extends Node> extends Object implements Node<T>
Constructor and Description |
---|
AbstractNode(SourceLocation sourceLocation,
List<Comment> comments,
IgnoredChars ignoredChars) |
Modifier and Type | Method and Description |
---|---|
protected <V extends Node> |
deepCopy(List<? extends Node> list) |
protected <V extends Node> |
deepCopy(V nullableObj) |
List<Comment> |
getComments()
Nodes can have comments made on them, the following is one comment per line before a node.
|
IgnoredChars |
getIgnoredChars()
The chars which are ignored by the parser.
|
SourceLocation |
getSourceLocation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, deepCopy, getChildren, getNamedChildren, isEqualTo, withNewChildren
public AbstractNode(SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars)
public SourceLocation getSourceLocation()
getSourceLocation
in interface Node<T extends Node>
public List<Comment> getComments()
Node
getComments
in interface Node<T extends Node>
public IgnoredChars getIgnoredChars()
Node
getIgnoredChars
in interface Node<T extends Node>
protected <V extends Node> V deepCopy(V nullableObj)
Copyright © 2019. All rights reserved.