org.teiid.language
Class Literal
java.lang.Object
org.teiid.language.BaseLanguageObject
org.teiid.language.Literal
- All Implemented Interfaces:
- Expression, LanguageObject
public class Literal
- extends BaseLanguageObject
- implements Expression
Represents a literal value that is used in
an expression. The value can be obtained and should match
the type specified by getType()
Constructor Summary |
Literal(java.lang.Object value,
java.lang.Class<?> type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Literal
public Literal(java.lang.Object value,
java.lang.Class<?> type)
getValue
public java.lang.Object getValue()
acceptVisitor
public void acceptVisitor(LanguageObjectVisitor visitor)
- Specified by:
acceptVisitor
in interface LanguageObject
getType
public java.lang.Class<?> getType()
- Description copied from interface:
Expression
- Determine the type returned by this expression.
- Specified by:
getType
in interface Expression
- Returns:
- The type, as defined by a Java class
setValue
public void setValue(java.lang.Object value)
isBindValue
public boolean isBindValue()
setBindValue
public void setBindValue(boolean bindValue)
isMultiValued
public boolean isMultiValued()
setMultiValued
public void setMultiValued(boolean multiValued)
setType
public void setType(java.lang.Class<?> type)
Copyright © 2010. All Rights Reserved.