org.teiid.connector.language
Interface ILiteral

All Superinterfaces:
IExpression, ILanguageObject

public interface ILiteral
extends IExpression

Represents a literal value that is used in an expression. The value can be obtained and should match the type specified by getType().


Method Summary
 java.lang.Class getType()
          Get the Java type of the literal
 java.lang.Object getValue()
          Get the value of the literal
 boolean isBindValue()
          Returns true if this literal should be treated as a bind value
 void setBindValue(boolean bindValue)
           
 void setType(java.lang.Class type)
          Set the Java type of the literal
 void setValue(java.lang.Object value)
          Set the value of the literal
 
Methods inherited from interface org.teiid.connector.language.ILanguageObject
acceptVisitor
 

Method Detail

getValue

java.lang.Object getValue()
Get the value of the literal

Returns:
Object of value

getType

java.lang.Class getType()
Get the Java type of the literal

Specified by:
getType in interface IExpression
Returns:
Java class name of type

setValue

void setValue(java.lang.Object value)
Set the value of the literal

Parameters:
value - Object of value

setType

void setType(java.lang.Class type)
Set the Java type of the literal

Specified by:
setType in interface IExpression
Parameters:
type - Java class name of type

isBindValue

boolean isBindValue()
Returns true if this literal should be treated as a bind value


setBindValue

void setBindValue(boolean bindValue)


Copyright © 2009. All Rights Reserved.