org.jibx.schema.codegen
Class PrefixExpressionBuilder

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

public class PrefixExpressionBuilder
extends ExpressionBuilderBase

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


Field Summary
private  PrefixExpression m_expression
          Cast expression.
 
Fields inherited from class org.jibx.schema.codegen.ExpressionBuilderBase
m_source
 
Fields inherited from class org.jibx.schema.codegen.ASTBuilderBase
m_ast
 
Constructor Summary
PrefixExpressionBuilder(ClassBuilder source, PrefixExpression expr, Expression operand)
          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_expression

private final PrefixExpression m_expression
Cast expression.

Constructor Detail

PrefixExpressionBuilder

public PrefixExpressionBuilder(ClassBuilder source,
                               PrefixExpression expr,
                               Expression operand)
Constructor.

Parameters:
source -
expr -
operand -
Method Detail

addOperand

protected void addOperand(Expression operand)
Add operand to expression. This class is not modifiable, so a call to this method just throws an exception.

Specified by:
addOperand in class ExpressionBuilderBase
Parameters:
operand -


Project Web Site