|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Consts
public class Consts
The Consts class stores the constants defeined in the program.
Constructor Summary | |
---|---|
Consts()
|
Method Summary | |
---|---|
static void |
defineName(java.lang.String newConstName,
boolean constant)
Associates the specified new boolean constant name with the specified boolean constant. |
static void |
defineName(java.lang.String newConstName,
int constant)
Associates the specified new constant name with the specified integer constant. |
static ConstExpression |
fromName(java.lang.String name)
Returns a ConstExpression representing the const of the specified type name, or null if there was no such type defined for this type name. |
static int |
size(java.lang.String name)
Returns the size of the specified constant in bits. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Consts()
Method Detail |
---|
public static ConstExpression fromName(java.lang.String name)
name
- the name of the constant whose associated ConstExpression is to be returned.
public static void defineName(java.lang.String newConstName, int constant) throws java.lang.IllegalArgumentException
newConstName
- the new constant name with which the specified constant is to be associated.constant
- the constant to be associated with the specified newConstName.
java.lang.IllegalArgumentException
- if the newConstName is already defined.public static void defineName(java.lang.String newConstName, boolean constant) throws java.lang.IllegalArgumentException
newConstName
- the new boolean constant name with which the specified constant is to be associated.constant
- the boolean constant to be associated with the specified newConstName.
java.lang.IllegalArgumentException
- if the newConstName is already defined.public static int size(java.lang.String name)
name
- the constant name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |