summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/dice/ast/VariableDiceNode.java
blob: 6ae31893696385be822161921db2c2415dc38975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package bjc.utils.dice.ast;

public class VariableDiceNode implements IDiceASTNode {
	private String var;

	public VariableDiceNode(String data) {
		this.var = data;
	}

	@Override
	public boolean isOperator() {
		return false;
	}

	/**
	 * Get the variable referenced by this AST node
	 * 
	 * @return the variable referenced by this AST node
	 */
	public String getVariable() {
		return var;
	}
	
	@Override
	public String toString() {
		return var;
	}
}