|
||||||
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.BodyBuilderBase
public class BodyBuilderBase
Abstract syntax tree body declaration builder base. This adds convenience methods and control information to the base builder.
Field Summary | |
---|---|
protected BodyDeclaration |
m_declaration
Body declaration under construction. |
protected ClassBuilder |
m_source
Source builder. |
Fields inherited from class org.jibx.schema.codegen.ASTBuilderBase |
---|
m_ast |
Constructor Summary | |
---|---|
BodyBuilderBase(ClassBuilder source,
BodyDeclaration decl)
Constructor. |
Method Summary | |
---|---|
void |
addSourceComment(java.lang.String text)
Add untagged source comment for this body. |
void |
addSourceComment(java.lang.String name,
java.lang.String text)
Add optionally tagged source comment for this body. |
void |
setFinal()
Set the final flag. |
void |
setPrivate()
Set the private access flag. |
void |
setPrivateFinal()
Set private final flags. |
void |
setPrivateStaticFinal()
Set private static final flags. |
void |
setPublic()
Set the public access flag. |
void |
setPublicStatic()
Set public static flags. |
void |
setPublicStaticFinal()
Set public static final flags. |
void |
setStatic()
Set the static flag. |
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 BodyDeclaration m_declaration
Constructor Detail |
---|
public BodyBuilderBase(ClassBuilder source, BodyDeclaration decl)
source
- decl
- Method Detail |
---|
public void setPublic()
public void setPrivate()
public void setStatic()
public void setFinal()
public void setPrivateFinal()
public void setPrivateStaticFinal()
public void setPublicStatic()
public void setPublicStaticFinal()
public void addSourceComment(java.lang.String name, java.lang.String text)
name
- tag name (add comment without tag if null
)text
- comment text, null
value ignoredpublic void addSourceComment(java.lang.String text)
text
- comment text, null
value ignored
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |