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
Abstract syntax tree infix expression builder. This adds convenience methods and control information to the base
builder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InfixExpression
Method invocation.private int
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
ConstructorsConstructorDescriptionInfixExpressionBuilder
(ClassBuilder source, InfixExpression expr) Constructor.InfixExpressionBuilder
(ClassBuilder source, InfixExpression expr, Expression operand) Constructor with left operand supplied. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Field Details
-
m_expression
private final InfixExpression m_expressionMethod invocation. -
m_operandCount
private int m_operandCountNumber of operands added to expression.
-
-
Constructor Details
-
InfixExpressionBuilder
Constructor.- Parameters:
source
-expr
-
-
InfixExpressionBuilder
Constructor with left operand supplied.- Parameters:
source
-expr
-operand
-
-
-
Method Details
-
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
-
-