org.codehaus.jparsec.examples.java.ast.expression
Enum IntegerLiteral.Radix
java.lang.Object
java.lang.Enum<IntegerLiteral.Radix>
org.codehaus.jparsec.examples.java.ast.expression.IntegerLiteral.Radix
- All Implemented Interfaces:
- Serializable, Comparable<IntegerLiteral.Radix>
- Enclosing class:
- IntegerLiteral
public static enum IntegerLiteral.Radix
- extends Enum<IntegerLiteral.Radix>
OCT
public static final IntegerLiteral.Radix OCT
DEC
public static final IntegerLiteral.Radix DEC
HEX
public static final IntegerLiteral.Radix HEX
values
public static IntegerLiteral.Radix[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (IntegerLiteral.Radix c : IntegerLiteral.Radix.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static IntegerLiteral.Radix valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
toString
public String toString()
- Overrides:
toString in class Enum<IntegerLiteral.Radix>
Copyright © 2014. All rights reserved.