Package org.jibx.schema.codegen
Class InfixExpressionBuilder
- java.lang.Object
-
- org.jibx.schema.codegen.ASTBuilderBase
-
- org.jibx.schema.codegen.ExpressionBuilderBase
-
- org.jibx.schema.codegen.InfixExpressionBuilder
-
public class InfixExpressionBuilder extends ExpressionBuilderBase
Abstract syntax tree infix expression builder. This adds convenience methods and control information to the base builder.
-
-
Field Summary
Fields Modifier and Type Field Description private InfixExpression
m_expression
Method invocation.private int
m_operandCount
Number of operands added to expression.-
Fields inherited from class org.jibx.schema.codegen.ExpressionBuilderBase
m_source
-
Fields inherited from class org.jibx.schema.codegen.ASTBuilderBase
m_ast
-
-
Constructor Summary
Constructors Constructor Description InfixExpressionBuilder(ClassBuilder source, InfixExpression expr)
Constructor.InfixExpressionBuilder(ClassBuilder source, InfixExpression expr, Expression operand)
Constructor with left operand supplied.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addOperand(Expression operand)
Add operand to expression.-
Methods inherited from class org.jibx.schema.codegen.ExpressionBuilderBase
addCharacterLiteralOperand, addNullOperand, addNumberLiteralOperand, addStringLiteralOperand, addVariableOperand, getExpression
-
Methods inherited from class org.jibx.schema.codegen.ASTBuilderBase
numberLiteral, setFinal, setPrivate, setPrivateFinal, setPrivateStaticFinal, setPublic, setPublicStatic, setPublicStaticFinal, setStatic, stringLiteral
-
-
-
-
Constructor Detail
-
InfixExpressionBuilder
public InfixExpressionBuilder(ClassBuilder source, InfixExpression expr)
Constructor.- Parameters:
source
-expr
-
-
InfixExpressionBuilder
public InfixExpressionBuilder(ClassBuilder source, InfixExpression expr, Expression operand)
Constructor with left operand supplied.- Parameters:
source
-expr
-operand
-
-
-
Method Detail
-
addOperand
protected void addOperand(Expression operand)
Add operand to expression. If the right operand has not yet been set this will set it; otherwise, it will add the operand as an extended operand of the expression.- Specified by:
addOperand
in classExpressionBuilderBase
- Parameters:
operand
-
-
-