blob: b062a0471e974e5a773250365dbb199ac4ab4afd (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
package com.jantuomi.interpreter.main.core.tokenizer.token;
/**
* Created by jan on 15.6.2016.
*/
public class ArgumentInfo {
private int count = 0;
private boolean isVarargs = false;
public Token.Type getOptionalArgument() {
return optionalArgument;
}
public void setOptionalArgument(Token.Type optionalArgument) {
this.optionalArgument = optionalArgument;
}
private Token.Type optionalArgument = null;
public Token.Type getTerminator() {
return terminator;
}
public void setTerminator(Token.Type terminator) {
this.terminator = terminator;
}
private Token.Type terminator;
public ArgumentInfo(int count) {
this.count = count;
}
public ArgumentInfo() {
}
public void setVariable(boolean value) {
this.isVarargs = value;
}
public boolean getVarargs() {
return isVarargs;
}
public int getCount() {
return count;
}
}
|