org.jibx.schema.codegen
Class CastBuilder

java.lang.Object
  extended by org.jibx.schema.codegen.ASTBuilderBase
      extended by org.jibx.schema.codegen.ExpressionBuilderBase
          extended by org.jibx.schema.codegen.CastBuilder

public class CastBuilder
extends ExpressionBuilderBase

Abstract syntax tree array cast expression builder. This adds convenience methods and control information to the base builder.


Field Summary
private  CastExpression m_cast
          Cast expression.
private  boolean m_set
          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
CastBuilder(ClassBuilder source, CastExpression expr)
          Constructor.
 
Method Summary
protected  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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_cast

private final CastExpression m_cast
Cast expression.


m_set

private boolean m_set
Flag for expression set.

Constructor Detail

CastBuilder

public CastBuilder(ClassBuilder source,
                   CastExpression expr)
Constructor.

Parameters:
source -
expr -
Method Detail

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


Project Web Site