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()
LangElement
getName
in interface LangElement
public 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()
LangElement
getData
in interface LangElement
public void setData(Object data)
data
- public ConstantInfo clone()
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.