|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.jel.FixedConstant
public class FixedConstant
Constant implementation which always has the same value.
Constructor Summary | |
---|---|
FixedConstant(Object value)
Constructs a constant with a given value. |
|
FixedConstant(Object value,
Class clazz)
Constructs a constant with a given value and class. |
Method Summary | |
---|---|
Class |
getContentClass()
Returns a class of which this object's value will be an instance. |
Object |
getValue()
Returns this object's value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedConstant(Object value, Class clazz)
clazz
- content classvalue
- valuepublic FixedConstant(Object value)
value
.
value
- valueMethod Detail |
---|
public Class getContentClass()
Constant
getContentClass
in interface Constant
public Object getValue()
Constant
Constant.getContentClass()
(or null).
getValue
in interface Constant
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |