|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.codegen.ASTBuilderBase
org.jibx.schema.codegen.ExpressionBuilderBase
public abstract class ExpressionBuilderBase
Abstract syntax tree expression builder base. This is used for expressions with multiple component operands. It adds convenience methods and control information to the base builder.
Field Summary | |
---|---|
protected Expression |
m_expression
Expression under construction. |
protected ClassBuilder |
m_source
Source builder. |
Fields inherited from class org.jibx.schema.codegen.ASTBuilderBase |
---|
m_ast |
Constructor Summary | |
---|---|
ExpressionBuilderBase(ClassBuilder source,
Expression expr)
Constructor. |
Method Summary | |
---|---|
void |
addCharacterLiteralOperand(char value)
Add a character literal operand to expression. |
void |
addNullOperand()
Add a null literal operand to expression. |
void |
addNumberLiteralOperand(java.lang.String value)
Add a number literal operand to expression. |
protected abstract void |
addOperand(Expression operand)
Add operand to expression. |
void |
addStringLiteralOperand(java.lang.String value)
Add a string literal operand to expression. |
void |
addVariableOperand(java.lang.String name)
Add a local variable or field name operand to expression. |
(package private) Expression |
getExpression()
Get expression. |
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 |
---|
protected final ClassBuilder m_source
protected final Expression m_expression
Constructor Detail |
---|
public ExpressionBuilderBase(ClassBuilder source, Expression expr)
source
- expr
- Method Detail |
---|
Expression getExpression()
protected abstract void addOperand(Expression operand)
operand
- public void addVariableOperand(java.lang.String name)
name
- public void addStringLiteralOperand(java.lang.String value)
value
- public void addCharacterLiteralOperand(char value)
value
- public void addNumberLiteralOperand(java.lang.String value)
value
- public void addNullOperand()
null
literal operand to expression.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |