Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen
Class TernaryStatement

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

public class TernaryStatement
extends AbstractStatement

Author:
Mike Brock

Constructor Summary
TernaryStatement(BooleanExpression condition, Statement trueStatement, Statement falseStatement)
           
 
Method Summary
 String generate(Context context)
           
 MetaClass getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TernaryStatement

public TernaryStatement(BooleanExpression condition,
                        Statement trueStatement,
                        Statement falseStatement)
Method Detail

generate

public String generate(Context context)

getType

public MetaClass getType()
Specified by:
getType in interface Statement
Overrides:
getType in class AbstractStatement

Errai 3.0.1-SNAPSHOT

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