public final class VarIntegerType extends IntegerType
| Modifier and Type | Field and Description |
|---|---|
static java.math.BigInteger |
VARINT_LOWER_BOUND |
static java.math.BigInteger |
VARINT_UPPER_BOUND |
static java.math.BigInteger |
VARINT16_LOWER_BOUND |
static java.math.BigInteger |
VARINT16_UPPER_BOUND |
static java.math.BigInteger |
VARINT32_LOWER_BOUND |
static java.math.BigInteger |
VARINT32_UPPER_BOUND |
static java.math.BigInteger |
VARINT64_LOWER_BOUND |
static java.math.BigInteger |
VARINT64_UPPER_BOUND |
static java.math.BigInteger |
VARSIZE_LOWER_BOUND |
static java.math.BigInteger |
VARSIZE_UPPER_BOUND |
static java.math.BigInteger |
VARUINT_LOWER_BOUND |
static java.math.BigInteger |
VARUINT_UPPER_BOUND |
static java.math.BigInteger |
VARUINT16_LOWER_BOUND |
static java.math.BigInteger |
VARUINT16_UPPER_BOUND |
static java.math.BigInteger |
VARUINT32_LOWER_BOUND |
static java.math.BigInteger |
VARUINT32_UPPER_BOUND |
static java.math.BigInteger |
VARUINT64_LOWER_BOUND |
static java.math.BigInteger |
VARUINT64_UPPER_BOUND |
| Constructor and Description |
|---|
VarIntegerType(AstLocation location,
java.lang.String name,
int tokenType)
Constructor from AST node location, the name and the token type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
java.math.BigInteger |
getLowerBound()
Gets lower bound for this integer type.
|
int |
getMaxBitSize()
Gets the maximum number of bits the variable integer can occupy.
|
java.math.BigInteger |
getUpperBound()
Gets upper bound for this integer type.
|
boolean |
isSigned()
Checks if this integer type is signed or not.
|
getLowerBound, getUpperBoundgetName, getPackagegetLocation, visitChildrenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocation, visitChildrenpublic static final java.math.BigInteger VARUINT16_UPPER_BOUND
public static final java.math.BigInteger VARUINT16_LOWER_BOUND
public static final java.math.BigInteger VARINT16_UPPER_BOUND
public static final java.math.BigInteger VARINT16_LOWER_BOUND
public static final java.math.BigInteger VARUINT32_UPPER_BOUND
public static final java.math.BigInteger VARUINT32_LOWER_BOUND
public static final java.math.BigInteger VARINT32_UPPER_BOUND
public static final java.math.BigInteger VARINT32_LOWER_BOUND
public static final java.math.BigInteger VARUINT64_UPPER_BOUND
public static final java.math.BigInteger VARUINT64_LOWER_BOUND
public static final java.math.BigInteger VARINT64_UPPER_BOUND
public static final java.math.BigInteger VARINT64_LOWER_BOUND
public static final java.math.BigInteger VARUINT_UPPER_BOUND
public static final java.math.BigInteger VARUINT_LOWER_BOUND
public static final java.math.BigInteger VARINT_UPPER_BOUND
public static final java.math.BigInteger VARINT_LOWER_BOUND
public static final java.math.BigInteger VARSIZE_UPPER_BOUND
public static final java.math.BigInteger VARSIZE_LOWER_BOUND
public VarIntegerType(AstLocation location, java.lang.String name, int tokenType)
location - AST node location.name - Name of the AST node taken from grammar.tokenType - Grammar token type.public void accept(ZserioAstVisitor visitor)
AstNodevisitor - Visitor to accept.public java.math.BigInteger getUpperBound()
IntegerTypegetUpperBound in class IntegerTypepublic java.math.BigInteger getLowerBound()
IntegerTypegetLowerBound in class IntegerTypepublic boolean isSigned()
IntegerTypeisSigned in class IntegerTypepublic int getMaxBitSize()
Last updated 2024-10-29 12:52:38