Package org.jibx.schema.codegen
Class NewArrayBuilder
- java.lang.Object
-
- org.jibx.schema.codegen.ASTBuilderBase
-
- org.jibx.schema.codegen.ExpressionBuilderBase
-
- org.jibx.schema.codegen.NewArrayBuilder
-
public class NewArrayBuilder extends ExpressionBuilderBase
Abstract syntax tree new array expression builder. This adds convenience methods and control information to the base builder.
-
-
Field Summary
Fields Modifier and Type Field Description private ArrayCreationm_arrayCreationArray creation expression.-
Fields inherited from class org.jibx.schema.codegen.ExpressionBuilderBase
m_expression, m_source
-
Fields inherited from class org.jibx.schema.codegen.ASTBuilderBase
m_ast
-
-
Constructor Summary
Constructors Constructor Description NewArrayBuilder(ClassBuilder source, ArrayCreation expr)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddOperand(Expression operand)Add operand to expression.voidsetSize(ExpressionBuilderBase size)Set the size of the array.-
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
-
NewArrayBuilder
public NewArrayBuilder(ClassBuilder source, ArrayCreation expr)
Constructor.- Parameters:
source-expr-
-
-
Method Detail
-
addOperand
protected void addOperand(Expression operand)
Add operand to expression. This just adds the supplied operand expression as a new initializer value.- Specified by:
addOperandin classExpressionBuilderBase- Parameters:
operand-
-
setSize
public void setSize(ExpressionBuilderBase size)
Set the size of the array.- Parameters:
size-
-
-