Class InfixExpressionBuilder


public class InfixExpressionBuilder extends ExpressionBuilderBase
Abstract syntax tree infix expression builder. This adds convenience methods and control information to the base builder.
  • Field Details

    • m_expression

      private final InfixExpression m_expression
      Method invocation.
    • m_operandCount

      private int m_operandCount
      Number of operands added to expression.
  • Constructor Details

    • 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 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 class ExpressionBuilderBase
      Parameters:
      operand -