io.deephaven.lang.generated.ChunkerIdent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-open-api-lang-parser Show documentation
Show all versions of deephaven-open-api-lang-parser Show documentation
The 'open-api-lang-parser' project
/* Generated By:JJTree: Do not edit this line. ChunkerIdent.java Version 7.0 */
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=true,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=Chunker,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package io.deephaven.lang.generated;
import io.deephaven.lang.api.IsScope;
public class ChunkerIdent extends ScopedNode implements IsScope {
private ChunkerTypeParams typeParams;
private Node scopeTarget;
public ChunkerIdent(int id) {
super(id);
}
public ChunkerIdent(Chunker p, int id) {
super(p, id);
}
/** Accept the visitor. **/
public Object jjtAccept(ChunkerVisitor visitor, Object data) {
return
visitor.visitChunkerIdent(this, data);
}
public ChunkerTypeParams getTypeParams() {
return typeParams;
}
public void setTypeParams(ChunkerTypeParams typeParams) {
assert this.typeParams == null : "May only set type params once!"; // we _can_ change this, it's just useless complexity atm tho.
this.typeParams = typeParams;
addChild(typeParams);
lastToken = typeParams.lastToken;
}
public String getName() {
String name = jjtGetFirstToken().image.trim();
return name.endsWith(".") ? name.substring(0, name.lastIndexOf('.')).trim() : name;
}
@Override
public void setScopeTarget(Node node) {
this.scopeTarget = node;
}
@Override
public Node getScopeTarget() {
return scopeTarget;
}
}
/* JavaCC - OriginalChecksum=2e15ba08a1038e351831c0f019beca43 (do not edit this line) */