ch.sahits.codegen.java.generator.ast
Class AbstractReferenceImplCaller

java.lang.Object
  extended by ch.sahits.codegen.java.generator.ast.AbstractReferenceImplCaller
All Implemented Interfaces:
IReferenceImpleCaller
Direct Known Subclasses:
ASTBeanWithDelete

public abstract class AbstractReferenceImplCaller
extends java.lang.Object
implements IReferenceImpleCaller

This class is a base class for all generator classes that use a reference implementation.

Since:
0.9.3
Author:
Andi Hotz

Field Summary
protected  AST ast
          The abstract syntax tree
protected  CompilationUnit unit
          This is the compilation unit that is worked on
 
Constructor Summary
AbstractReferenceImplCaller()
           
 
Method Summary
protected  void addImports(ch.sahits.codegen.java.generator.ast.ReferenceAST ref)
          Add the needed imports to the compilation unit.
protected  void addMethods(ch.sahits.codegen.java.generator.ast.ReferenceAST ref)
          Add the methods that are defined in the reference implementation to the compilation unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ast

protected AST ast
The abstract syntax tree


unit

protected CompilationUnit unit
This is the compilation unit that is worked on

Constructor Detail

AbstractReferenceImplCaller

public AbstractReferenceImplCaller()
Method Detail

addMethods

protected final void addMethods(ch.sahits.codegen.java.generator.ast.ReferenceAST ref)
Add the methods that are defined in the reference implementation to the compilation unit. This is done by invoking the ReferenceAST.

Parameters:
ref - ReferenceAST

addImports

protected final void addImports(ch.sahits.codegen.java.generator.ast.ReferenceAST ref)
Add the needed imports to the compilation unit. This is done by invoking the ReferenceAST.

Parameters:
ref - ReferenceAST