49 lines
1.2 KiB
Java
49 lines
1.2 KiB
Java
/* Generated By:JJTree: Do not edit this line. ASTMyScript.java Version 4.3 */
|
|
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
|
|
package eu.dnetlib.data.collective.transformation.rulelanguage.parser;
|
|
|
|
public class ASTMyScript extends SimpleNode {
|
|
|
|
public static enum SCRIPTTYPE{MAINSCRIPT, SUBSCRIPT};
|
|
|
|
private String scriptName = "";
|
|
private SCRIPTTYPE scriptType;
|
|
|
|
public ASTMyScript(int id) {
|
|
super(id);
|
|
}
|
|
|
|
public ASTMyScript(FtScript p, int id) {
|
|
super(p, id);
|
|
}
|
|
|
|
|
|
/** Accept the visitor. **/
|
|
public Object jjtAccept(FtScriptVisitor visitor, Object data) {
|
|
return visitor.visit(this, data);
|
|
}
|
|
|
|
public void setScript(String scriptName) {
|
|
this.scriptName = scriptName.substring( (scriptName.indexOf("\"") + 1), scriptName.lastIndexOf("\"") );
|
|
}
|
|
|
|
public String getScript() {
|
|
return scriptName;
|
|
}
|
|
|
|
/**
|
|
* @param scriptType the scriptType to set
|
|
*/
|
|
public void setScriptType(SCRIPTTYPE scriptType) {
|
|
this.scriptType = scriptType;
|
|
}
|
|
|
|
/**
|
|
* @return the scriptType
|
|
*/
|
|
public SCRIPTTYPE getScriptType() {
|
|
return scriptType;
|
|
}
|
|
}
|
|
/* JavaCC - OriginalChecksum=c9a44759b6c7b4b163c6b10f67226e91 (do not edit this line) */
|