Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen
Class Cast

java.lang.Object
  extended by org.jboss.errai.codegen.Cast
All Implemented Interfaces:
Statement

public class Cast
extends Object
implements Statement

Implements code generation of type casting statements.

Author:
Mike Brock , Christian Sadilek , Jonathan Fuerth

Method Summary
 String generate(Context context)
           
 MetaClass getType()
           
static Statement to(Class<?> cls, Statement stmt)
           
static Cast to(MetaClass cls, Statement stmt)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

to

public static Statement to(Class<?> cls,
                           Statement stmt)

to

public static Cast to(MetaClass cls,
                      Statement stmt)

generate

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

getType

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

toString

public String toString()
Overrides:
toString in class Object

Errai 3.0.1-SNAPSHOT

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