Project

General

Profile

1
/* Generated By:JJTree: Do not edit this line. ASTMyPreprocess.java Version 4.3 */
2
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
3
package eu.dnetlib.msro.workers.aggregation.transform.rulelanguage.parser;
4

    
5
public class ASTMyPreprocess extends SimpleNode {
6

    
7
	private String id;
8
	private String funcName;
9
	private String parameter;
10

    
11
	public ASTMyPreprocess(int id) {
12
		super(id);
13
	}
14

    
15
	public ASTMyPreprocess(FtScript p, int id) {
16
		super(p, id);
17
	}
18

    
19
	/**
20
	 * Accept the visitor.
21
	 **/
22
	public Object jjtAccept(FtScriptVisitor visitor, Object data) {
23
		return visitor.visit(this, data);
24
	}
25

    
26
	public String getFunctionName() {
27
		return this.funcName;
28
	}
29

    
30
	public String getParameter() {
31
		return this.parameter;
32
	}
33

    
34
	public String getId() {
35
		return id;
36
	}
37

    
38
	public void preprocess(String aPreprocessId, String aFunction, String aParameter) {
39
		this.id = aPreprocessId;
40
		this.funcName = aFunction;
41
		// unquote
42
		if (aParameter.length() > 0) {
43
			this.parameter = aParameter.substring(1, aParameter.length() - 1);
44
		}
45
	}
46

    
47
	public void preprocess(String aFunction, String aParameter) {
48
		this.funcName = aFunction;
49
		// unquote
50
		if (aParameter.length() > 0) {
51
			this.parameter = aParameter.substring(1, aParameter.length() - 1);
52
		}
53
	}
54

    
55
	public void preprocess(String aFunction) {
56
		this.funcName = aFunction;
57
	}
58
}
59
/* JavaCC - OriginalChecksum=b9229360af18a53de1ce87664846e442 (do not edit this line) */
(9-9/28)