Class IfStatement
- java.lang.Object
-
- org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
-
- org.glassfish.pfl.dynamic.codegen.impl.NodeBase
-
- org.glassfish.pfl.dynamic.codegen.impl.StatementBase
-
- org.glassfish.pfl.dynamic.codegen.impl.IfStatement
-
- All Implemented Interfaces:
AttributedObject
,Node
,Statement
,CopyInterceptor
public final class IfStatement extends StatementBase
-
-
Field Summary
Fields Modifier and Type Field Description private Expression
condition
private BlockStatement
falsePart
private BlockStatement
truePart
-
Constructor Summary
Constructors Constructor Description IfStatement(Node parent, Expression expr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Accept the visitor and allow it to perform actions on this Node.Expression
condition()
BlockStatement
falsePart()
BlockStatement
truePart()
-
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.NodeBase
copy, copy, getAncestor, id, parent, parent, postCopy, preCopy, toString
-
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
attributes, get, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.AttributedObject
attributes, get, set
-
-
-
-
Field Detail
-
condition
private Expression condition
-
truePart
private BlockStatement truePart
-
falsePart
private BlockStatement falsePart
-
-
Constructor Detail
-
IfStatement
IfStatement(Node parent, Expression expr)
-
-
Method Detail
-
condition
public Expression condition()
-
truePart
public BlockStatement truePart()
-
falsePart
public BlockStatement falsePart()
-
-