|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.codegen.ASTBuilderBase
public class ASTBuilderBase
Abstract syntax tree builder base class. This wraps the AST with convenience methods.
Field Summary | |
---|---|
protected AST |
m_ast
Actual AST instance. |
Constructor Summary | |
---|---|
ASTBuilderBase(AST ast)
Constructor. |
Method Summary | |
---|---|
NumberLiteral |
numberLiteral(java.lang.String value)
Create a number literal. |
void |
setFinal(BodyDeclaration decl)
Set the final flag for a declaration. |
void |
setPrivate(BodyDeclaration decl)
Set the private access flag for a declaration. |
void |
setPrivateFinal(BodyDeclaration decl)
Set declaration as private final. |
void |
setPrivateStaticFinal(BodyDeclaration decl)
Set declaration as private static final. |
void |
setPublic(BodyDeclaration decl)
Set the public access flag for a declaration. |
void |
setPublicStatic(BodyDeclaration decl)
Set declaration as public static. |
void |
setPublicStaticFinal(BodyDeclaration decl)
Set declaration as public static final. |
void |
setStatic(BodyDeclaration decl)
Set the static flag for a declaration. |
StringLiteral |
stringLiteral(java.lang.String value)
Create a string literal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AST m_ast
Constructor Detail |
---|
public ASTBuilderBase(AST ast)
ast
- Method Detail |
---|
public void setPublic(BodyDeclaration decl)
decl
- public void setPrivate(BodyDeclaration decl)
decl
- public void setStatic(BodyDeclaration decl)
decl
- public void setFinal(BodyDeclaration decl)
decl
- public void setPrivateFinal(BodyDeclaration decl)
decl
- public void setPrivateStaticFinal(BodyDeclaration decl)
decl
- public void setPublicStatic(BodyDeclaration decl)
decl
- public void setPublicStaticFinal(BodyDeclaration decl)
decl
- public StringLiteral stringLiteral(java.lang.String value)
value
- literal value
public NumberLiteral numberLiteral(java.lang.String value)
value
- literal value
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |