ponderToolkit.compiler.codeGen
Interface CodeGeneratorI

All Known Implementing Classes:
JavaCodeGenerator, XMLCodeGenerator

public interface CodeGeneratorI

Function:This is the interface that must be implemented by a Ponder Code Generator


Field Summary
static int CODE_GEN_CUSTOM
           
static int CODE_GEN_FIREWALL
           
static int CODE_GEN_IETF
           
static int CODE_GEN_JAVA
           
static int CODE_GEN_JAVA_POLICIES
           
static int CODE_GEN_LINUX
           
static int CODE_GEN_PROLOG
           
static int CODE_GEN_WIN2000
           
static int CODE_GEN_XML
           
 
Method Summary
 int getCodeType()
          Return the type of code generated by this code generator.
 java.lang.String getName()
          Return the name (a descriptive name) in case this code generator is a CODE_GEN_CUSTOM code generator
 void setAssembler(CodeAssemblerI newCodeAssembler)
          Set the code Assembler - Used to set the generated code text
 void setCodeIterator(PolicyListIteratorI newCodeIterator)
          Set the CodeIterator.
 

Field Detail

CODE_GEN_JAVA

public static final int CODE_GEN_JAVA

CODE_GEN_IETF

public static final int CODE_GEN_IETF

CODE_GEN_XML

public static final int CODE_GEN_XML

CODE_GEN_JAVA_POLICIES

public static final int CODE_GEN_JAVA_POLICIES

CODE_GEN_WIN2000

public static final int CODE_GEN_WIN2000

CODE_GEN_FIREWALL

public static final int CODE_GEN_FIREWALL

CODE_GEN_LINUX

public static final int CODE_GEN_LINUX

CODE_GEN_PROLOG

public static final int CODE_GEN_PROLOG

CODE_GEN_CUSTOM

public static final int CODE_GEN_CUSTOM
Method Detail

setAssembler

public void setAssembler(CodeAssemblerI newCodeAssembler)
Set the code Assembler - Used to set the generated code text

setCodeIterator

public void setCodeIterator(PolicyListIteratorI newCodeIterator)
Set the CodeIterator. A Full access to the Intermediate Code generated by the Semantic Analyser. The Code Generator can start the code generation here

getCodeType

public int getCodeType()
Return the type of code generated by this code generator.

getName

public java.lang.String getName()
Return the name (a descriptive name) in case this code generator is a CODE_GEN_CUSTOM code generator