org.jboss.errai.ioc.rebind.ioc.codegen.literal
Class LiteralValue<T>

java.lang.Object
  extended by org.jboss.errai.ioc.rebind.ioc.codegen.literal.LiteralValue<T>
All Implemented Interfaces:
Statement
Direct Known Subclasses:
ArrayLiteral, BooleanValue, ByteValue, CharValue, ClassLiteral, DoubleValue, FloatValue, IntValue, LongValue, NullLiteral, ShortValue, StringLiteral

public abstract class LiteralValue<T>
extends Object
implements Statement

Author:
Mike Brock

Field Summary
protected  Class<T> clazz
           
 
Constructor Summary
protected LiteralValue(T value)
           
 
Method Summary
 boolean equals(Object obj)
           
 String generate(Context context)
           
abstract  String getCanonicalString(Context context)
           
 MetaClass getType()
           
 T getValue()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

protected Class<T> clazz
Constructor Detail

LiteralValue

protected LiteralValue(T value)
Method Detail

getCanonicalString

public abstract String getCanonicalString(Context context)

getValue

public T getValue()

generate

public String generate(Context context)
Specified by:
generate in interface Statement

getType

public MetaClass getType()
Specified by:
getType in interface Statement

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.