Package org.jibx.schema.codegen
Class CastBuilder
java.lang.Object
org.jibx.schema.codegen.ASTBuilderBase
org.jibx.schema.codegen.ExpressionBuilderBase
org.jibx.schema.codegen.CastBuilder
Abstract syntax tree array cast expression builder. This adds convenience methods and control information to the base
builder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CastExpression
Cast expression.private boolean
Flag for expression set.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 -
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_cast
private final CastExpression m_castCast expression. -
m_set
private boolean m_setFlag for expression set.
-
-
Constructor Details
-
CastBuilder
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 target, as long as the target has not been set previously.- Specified by:
addOperand
in classExpressionBuilderBase
- Parameters:
operand
-
-