Errai 3.0.1-SNAPSHOT

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

java.lang.Object
  extended by org.jboss.errai.codegen.literal.LiteralValue<T>
All Implemented Interfaces:
Statement
Direct Known Subclasses:
AnnotationLiteral, ArrayLiteral, BooleanValue, ByteValue, CharValue, ClassLiteral, DoubleValue, FloatValue, IntValue, ListValue, LongValue, MapValue, MetaClassLiteral, NullLiteral, SetValue, 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

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.