ASTUnary.java
838 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.forms.formcalc;
import com.adobe.forms.formcalc.CalcTransParser;
import com.adobe.forms.formcalc.CalcTransParserVisitor;
import com.adobe.forms.formcalc.SimpleNode;
public class ASTUnary
extends SimpleNode {
private int sign;
public ASTUnary(int id) {
super(id);
}
public ASTUnary(CalcTransParser p, int id) {
super(p, id);
}
@Override
public Object jjtAccept(CalcTransParserVisitor visitor, Object data) {
return visitor.visit(this, data);
}
boolean hasPLUSPrefix() {
return this.sign == 57;
}
boolean hasMINUSPrefix() {
return this.sign == 58;
}
boolean hasNOTPrefix() {
return this.sign == 56;
}
public void setSign(int sign) {
this.sign = sign;
}
}