public class Constant extends FieldDecl
Constructor and Description |
---|
Constant(java.lang.String name,
Modifiers mod) |
Modifier and Type | Method and Description |
---|---|
void |
codegen(ClassFile classfile,
java.util.Vector paralist) |
TypeAssumptions |
createTypeAssumptions(Class classmember)
Diese Methode generiert die Assumptions f�r dieses Feld der Klasse classmember
|
int |
getLineNumber() |
Modifiers |
getModifiers() |
java.lang.String |
getName() |
int |
getOffset() |
Type |
getType()
Gibt den Typ der Konstantendefinition zurueck.
|
java.lang.String |
getTypeName() |
Expr |
getValue()
Gibt den Wert der Konstantendefinition zurueck.
|
java.lang.String |
printJavaCode(ResultSet resultSet) |
void |
setModifiers(Modifiers modifiers) |
void |
setName(java.lang.String name) |
void |
setType(Type typ)
Legt den Typ der Konstantendefinition fest
|
void |
setValue(Expr exp)
Legt den Wert der Konstantendefinition fest.
|
get_Name, getDeclIdVector, set_DeclId, setDeclIdVector
public Constant(java.lang.String name, Modifiers mod)
public Expr getValue()
public void setValue(Expr exp)
public Type getType()
public void setType(Type typ)
public java.lang.String getTypeName()
getTypeName
in class FieldDecl
public java.lang.String getName()
public void setName(java.lang.String name)
public Modifiers getModifiers()
public void setModifiers(Modifiers modifiers)
public void codegen(ClassFile classfile, java.util.Vector paralist) throws JVMCodeException
codegen
in class FieldDecl
JVMCodeException
public int getOffset()
public int getLineNumber()
public java.lang.String printJavaCode(ResultSet resultSet)
printJavaCode
in class FieldDecl
public TypeAssumptions createTypeAssumptions(Class classmember)
FieldDecl
createTypeAssumptions
in class FieldDecl