1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.jexl3.parser;
18
19 import org.apache.commons.jexl3.JxltEngine;
20
21 public final class ASTJxltLiteral extends JexlNode {
22
23 private static final long serialVersionUID = 1L;
24
25 private String literal;
26
27 private transient JxltEngine.Expression jxltExpression = null;
28
29 ASTJxltLiteral(final int id) {
30 super(id);
31 }
32
33 public JxltEngine.Expression getExpression() {
34 return jxltExpression;
35 }
36
37
38
39
40
41 public String getLiteral() {
42 return this.literal;
43 }
44
45 @Override
46 public Object jjtAccept(final ParserVisitor visitor, final Object data) {
47 return visitor.visit(this, data);
48 }
49
50 public void setExpression(final JxltEngine.Expression e) {
51 this.jxltExpression = e;
52 }
53
54 void setLiteral(final String literal) {
55 this.literal = literal;
56 }
57
58 @Override
59 public String toString() {
60 return this.literal;
61 }
62 }