public class ConstantInfo extends Object implements LangElement, Cloneable
| Constructor and Description |
|---|
ConstantInfo(String name,
Type type,
boolean isPrivate) |
ConstantInfo(String name,
Type type,
boolean isPrivate,
boolean isLiteral,
Object literalValue) |
| Modifier and Type | Method and Description |
|---|---|
ConstantInfo |
clone() |
Object |
getData()
Returns the associated element data.
|
Object |
getLiteralValue()
If the constant is
literal, returns the literal value. |
Module |
getModule() |
String |
getName()
Returns the element name.
|
Type |
getType() |
boolean |
isLiteral()
Returns
true if the constant definition is a literal. |
boolean |
isPrivate() |
void |
setData(Object data) |
public ConstantInfo(String name, Type type, boolean isPrivate)
name - type - isPrivate - public Module getModule()
public String getName()
LangElementgetName in interface LangElementpublic Type getType()
public boolean isPrivate()
public boolean isLiteral()
true if the constant definition is a literal.true if the constant definition is a literalpublic Object getLiteralValue()
literal, returns the literal value.public Object getData()
LangElementgetData in interface LangElementpublic void setData(Object data)
data - public ConstantInfo clone()
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.