Cantaloop CGimlet - API Documentation, Version: 0.2.0, Date: 2002-05-13 21:30 CEST

org.cantaloop.cgimlet.lang
Interface LanguageFactory

All Known Implementing Classes:
JLanguageFactory

public interface LanguageFactory

Factory class that creates the implementations of the interfaces in this package for a concrete programming language.

Version:
0.2.0 ($Revision: 1.4 $)
Author:
Stefan Heimann

Method Summary
 Type getBoolType()
          Returns the type that represents a boolean in the concrete programming language.
 ClassTemplate getClassTemplate(java.lang.String pkg, java.lang.String name)
          Returns a template for a class in the package pkg with name name.
 CodeWriter getCodeWriter()
           
 CodeCompiler getCompiler()
           
 FieldTemplate getConstantFieldTemplate(Type type, java.lang.String name)
          Returns a template for a field that represents a constant.
 Type getDoubleType()
          Returns the type that represents a floating-point number in the concrete programming language.
 FieldTemplate getFieldTemplate(Type type, java.lang.String name)
           
 Type getIntType()
          Returns the type that represents a integer in the concrete programming language.
 Type getListType()
          Returns the type that represent a list in the concrete programming language.
 Type getMapType()
          Returns the type that represents a map (sometimes also called dictionary or associative array) in the concrete programming language.
 MethodTemplate getMethodTemplate(java.lang.String name)
           
 Modifier getModifier()
           
 Modifier getModifier(Modifier.Access acc, boolean isStatic, boolean isFinal)
           
 Type getSetType()
          Returns the type that represent a set in the concrete programming language.
 Type getStringType()
          Returns the type that represents a string in the concrete programming language.
 Type getType(java.lang.String name)
          Returns a type for the given name.
 CGUtils getUtils()
           
 Type getVoidType()
          Returns the type that represent no type in the concrete programming language.
 

Method Detail

getCodeWriter

public CodeWriter getCodeWriter()

getUtils

public CGUtils getUtils()

getClassTemplate

public ClassTemplate getClassTemplate(java.lang.String pkg,
                                      java.lang.String name)
Returns a template for a class in the package pkg with name name.

getMethodTemplate

public MethodTemplate getMethodTemplate(java.lang.String name)

getFieldTemplate

public FieldTemplate getFieldTemplate(Type type,
                                      java.lang.String name)

getConstantFieldTemplate

public FieldTemplate getConstantFieldTemplate(Type type,
                                              java.lang.String name)
Returns a template for a field that represents a constant.
Parameters:
type - the type of the field
name - the name of the field
Returns:
a FieldTemplate value

getModifier

public Modifier getModifier()

getModifier

public Modifier getModifier(Modifier.Access acc,
                            boolean isStatic,
                            boolean isFinal)

getStringType

public Type getStringType()
Returns the type that represents a string in the concrete programming language.

getIntType

public Type getIntType()
Returns the type that represents a integer in the concrete programming language.

getDoubleType

public Type getDoubleType()
Returns the type that represents a floating-point number in the concrete programming language.

getBoolType

public Type getBoolType()
Returns the type that represents a boolean in the concrete programming language.

getMapType

public Type getMapType()
Returns the type that represents a map (sometimes also called dictionary or associative array) in the concrete programming language.

getSetType

public Type getSetType()
Returns the type that represent a set in the concrete programming language.

getListType

public Type getListType()
Returns the type that represent a list in the concrete programming language.

getVoidType

public Type getVoidType()
Returns the type that represent no type in the concrete programming language.

getType

public Type getType(java.lang.String name)
Returns a type for the given name.

getCompiler

public CodeCompiler getCompiler()

Copyright 2001, 2002 Stefan Heimann, David Leuschner. All rights reserved.