org.jibx.schema.codegen
Class BodyBuilderBase

java.lang.Object
  extended by org.jibx.schema.codegen.ASTBuilderBase
      extended by org.jibx.schema.codegen.BodyBuilderBase
Direct Known Subclasses:
FieldBuilder, MethodBuilder

public class BodyBuilderBase
extends ASTBuilderBase

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

m_source

protected final ClassBuilder m_source
Source builder.


m_declaration

protected final BodyDeclaration m_declaration
Body declaration under construction.

Constructor Detail

BodyBuilderBase

public BodyBuilderBase(ClassBuilder source,
                       BodyDeclaration decl)
Constructor.

Parameters:
source -
decl -
Method Detail

setPublic

public void setPublic()
Set the public access flag.


setPrivate

public void setPrivate()
Set the private access flag.


setStatic

public void setStatic()
Set the static flag.


setFinal

public void setFinal()
Set the final flag.


setPrivateFinal

public void setPrivateFinal()
Set private final flags.


setPrivateStaticFinal

public void setPrivateStaticFinal()
Set private static final flags.


setPublicStatic

public void setPublicStatic()
Set public static flags.


setPublicStaticFinal

public void setPublicStaticFinal()
Set public static final flags.


addSourceComment

public void addSourceComment(java.lang.String name,
                             java.lang.String text)
Add optionally tagged source comment for this body.

Parameters:
name - tag name (add comment without tag if null)
text - comment text, null value ignored

addSourceComment

public void addSourceComment(java.lang.String text)
Add untagged source comment for this body.

Parameters:
text - comment text, null value ignored


Project Web Site