public interface CmtValue
Modifier and Type | Method and Description |
---|---|
SourceExpression |
getExpression()
Get the SourceExpression held by this CmtValue.
|
CmtSubcomponent |
getSubcomponent()
Get the CmtSubcomponent, if any, referred to by this CmtValue.
|
java.lang.String |
getText()
Get the expression as text.
|
java.lang.Object |
getValue(JavaType type)
Attempts to evaluate the expression to a live value.
|
void |
setText(java.lang.String text)
Set the expression of this value based upon the given text.
|
CmtSubcomponent getSubcomponent()
SourceExpression getExpression()
java.lang.Object getValue(JavaType type) throws CmtParseException
type
- the desired type to evaluate the expression as.CmtParseException
java.lang.String getText()
void setText(java.lang.String text)
text
- the souce to use as the expression.