public class Constant extends Method
Modifier and Type | Field and Description |
---|---|
protected Expr |
exp |
protected Modifiers |
mod |
protected java.lang.String |
name |
protected Type |
typ |
inferencelog, parameterlist, parserlog
parent
Constructor and Description |
---|
Constant(java.lang.String name,
Modifiers mod)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
TypeAssumptions |
createTypeAssumptions(Class classmember)
Liefert die MethodAssumption zu dieser Methode
|
java.lang.String |
getIdentifier() |
int |
getLineNumber() |
Modifiers |
getModifiers() |
int |
getOffset() |
Type |
getType()
Gibt den Typ der Konstantendefinition zurueck.
|
int |
getTypeLineNumber()
Author: Jrg Buerle |
JavaClassName |
getTypeName() |
Expr |
getValue()
Gibt den Wert der Konstantendefinition zurueck.
|
JavaCodeResult |
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.
|
createEmptyMethod, equals, get_Block, get_ExceptionList, get_Method_Name, get_Type_Paralist, getChildren, getOverloadedID, getParameterCount, getParameterList, getTypeInformation, getVariableLength, isAbstract, parserPostProcessing, set_Block, set_ExceptionList, set_Method_Name, set_Modifiers, setAbstract, setLineNumber, setOffset, setOverloadedID, setParameterList, toString, TYPE, wandleRefTypeAttributes2GenericAttributes
createTypeInsertPoint, get_Name, getDeclIdMenge, getDescription, getGenericDeclarationList, getGenericParameter, getGenericVarDeclarationOffset, getGenericVarDeclarationString, isClass, isPublic, set_DeclId, setDeclIdMenge, setGenericParameter
getGTVDeclarationContext
addTypeInsertPoints, getMatchingParentNode, getParent, getParentClass, seesType
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createTypeInsertPoint
protected java.lang.String name
protected Modifiers mod
protected Expr exp
protected Type typ
@Deprecated 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 JavaClassName getTypeName()
getTypeName
in class Method
public java.lang.String getIdentifier()
getIdentifier
in interface TypeInsertable
getIdentifier
in class Field
public void setName(java.lang.String name)
public Modifiers getModifiers()
public void setModifiers(Modifiers modifiers)
public int getOffset()
getOffset
in interface IItemWithOffset
getOffset
in interface TypeInsertable
getOffset
in class Method
public int getLineNumber()
getLineNumber
in class Method
public JavaCodeResult printJavaCode(ResultSet resultSet)
printJavaCode
in class Method
public TypeAssumptions createTypeAssumptions(Class classmember)
Method
createTypeAssumptions
in class Method
public int getTypeLineNumber()
Method
getTypeLineNumber
in class Method