Class ExpressionFactory.IfExpression
- java.lang.Object
-
- org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
-
- org.glassfish.pfl.dynamic.codegen.impl.NodeBase
-
- org.glassfish.pfl.dynamic.codegen.impl.ExpressionFactory.ExpressionBase
-
- org.glassfish.pfl.dynamic.codegen.impl.ExpressionFactory.IfExpression
-
- All Implemented Interfaces:
AttributedObject
,ExpressionInternal
,Node
,Statement
,Expression
,CopyInterceptor
- Enclosing class:
- ExpressionFactory
public static final class ExpressionFactory.IfExpression extends ExpressionFactory.ExpressionBase
-
-
Field Summary
Fields Modifier and Type Field Description private Expression
condition
private Expression
falsePart
private Expression
truePart
private Type
type
-
Constructor Summary
Constructors Constructor Description IfExpression(ExpressionFactory ef, Expression condition, Expression truePart, Expression falsePart)
-
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()
Expression
falsePart()
java.lang.String
toString()
Expression
truePart()
Type
type()
-
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.ExpressionFactory.ExpressionBase
copy, copy, isAssignable
-
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.NodeBase
getAncestor, id, parent, parent, postCopy, preCopy
-
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
-
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.Node
getAncestor, id, parent, parent
-
-
-
-
Field Detail
-
condition
private Expression condition
-
truePart
private Expression truePart
-
falsePart
private Expression falsePart
-
type
private Type type
-
-
Constructor Detail
-
IfExpression
IfExpression(ExpressionFactory ef, Expression condition, Expression truePart, Expression falsePart)
-
-
Method Detail
-
condition
public Expression condition()
-
truePart
public Expression truePart()
-
falsePart
public Expression falsePart()
-
type
public Type type()
-
accept
public void accept(Visitor visitor)
Description copied from interface:Node
Accept the visitor and allow it to perform actions on this Node.- Specified by:
accept
in interfaceNode
- Specified by:
accept
in classExpressionFactory.ExpressionBase
-
-