Package org.jibx.schema.codegen
Class ArrayAccessBuilder
java.lang.Object
org.jibx.schema.codegen.ASTBuilderBase
org.jibx.schema.codegen.ExpressionBuilderBase
org.jibx.schema.codegen.ArrayAccessBuilder
Abstract syntax tree array access expression builder. This adds convenience methods and control information to the
base builder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArrayAccessArray creation expression.Fields inherited from class org.jibx.schema.codegen.ExpressionBuilderBase
m_expression, m_sourceFields inherited from class org.jibx.schema.codegen.ASTBuilderBase
m_ast -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddOperand(Expression operand) Add operand to expression.Methods inherited from class org.jibx.schema.codegen.ExpressionBuilderBase
addCharacterLiteralOperand, addNullOperand, addNumberLiteralOperand, addStringLiteralOperand, addVariableOperand, getExpressionMethods inherited from class org.jibx.schema.codegen.ASTBuilderBase
numberLiteral, setFinal, setPrivate, setPrivateFinal, setPrivateStaticFinal, setPublic, setPublicStatic, setPublicStaticFinal, setStatic, stringLiteral
-
Field Details
-
m_arrayAccess
private final ArrayAccess m_arrayAccessArray creation expression.
-
-
Constructor Details
-
ArrayAccessBuilder
Constructor.- Parameters:
source-expr-
-
-
Method Details
-
addOperand
protected void addOperand(Expression operand) Add operand to expression. This just sets the supplied operand expression as the index value, as long as the index has not been set previously.- Specified by:
addOperandin classExpressionBuilderBase- Parameters:
operand-
-