public abstract class JsNode extends Object implements JsVisitable, HasSourceInfo, Serializable
Modifier | Constructor and Description |
---|---|
protected |
JsNode(SourceInfo sourceInfo) |
Modifier and Type | Method and Description |
---|---|
abstract NodeKind |
getKind() |
SourceInfo |
getSourceInfo()
Return the source info associated with this object.
|
void |
setSourceInfo(SourceInfo info) |
String |
toSource()
Returns a source code representation of the node using short identifiers.
|
String |
toSource(boolean useLongIdents)
Returns a source code representation of the node using short or long identifiers.
|
String |
toString()
Causes source generation to delegate to the one visitor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
traverse
protected JsNode(SourceInfo sourceInfo)
public abstract NodeKind getKind()
public SourceInfo getSourceInfo()
HasSourceInfo
getSourceInfo
in interface HasSourceInfo
public void setSourceInfo(SourceInfo info)
public final String toSource()
public final String toSource(boolean useLongIdents)
useLongIdents
- if true, emit all identifiers in long formCopyright © 2018. All rights reserved.