Package org.verapdf.parser
Class Token
- java.lang.Object
-
- org.verapdf.parser.Token
-
public class Token extends Object
- Author:
- Timur Kamalov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Token.Keyword
static class
Token.Type
-
Field Summary
Fields Modifier and Type Field Description long
integer
Token.Keyword
keyword
double
real
Token.Type
type
-
Constructor Summary
Constructors Constructor Description Token()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(int c)
void
clearValue()
byte[]
getByteValue()
Long
getHexCount()
static Token.Keyword
getKeyword(String keyword)
int
getSize()
String
getValue()
boolean
isContainsOnlyHex()
void
setByteValue(byte[] array)
void
setContainsOnlyHex(boolean containsOnlyHex)
void
setHexCount(Long hexCount)
void
toKeyword()
-
-
-
Field Detail
-
type
public Token.Type type
-
keyword
public Token.Keyword keyword
-
integer
public long integer
-
real
public double real
-
-
Method Detail
-
toKeyword
public void toKeyword()
-
append
public void append(int c)
-
getValue
public String getValue()
-
getByteValue
public byte[] getByteValue()
-
clearValue
public void clearValue()
-
getSize
public int getSize()
-
getKeyword
public static Token.Keyword getKeyword(String keyword)
-
isContainsOnlyHex
public boolean isContainsOnlyHex()
-
setContainsOnlyHex
public void setContainsOnlyHex(boolean containsOnlyHex)
-
getHexCount
public Long getHexCount()
-
setHexCount
public void setHexCount(Long hexCount)
-
setByteValue
public void setByteValue(byte[] array)
-
-