|
Cantaloop CGimlet - API Documentation, Version: 0.2.0, Date: 2002-05-13 21:30 CEST | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.cantaloop.cgimlet.lang.java.JLanguageFactory
Implementation of LanguageFactory
for the java programming language.
Inner Class Summary | |
static class |
JLanguageFactory.JModifier
|
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)
|
static LanguageFactory |
getInstance()
|
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 access,
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static LanguageFactory getInstance()
public final CodeWriter getCodeWriter()
getCodeWriter
in interface LanguageFactory
public final CGUtils getUtils()
getUtils
in interface LanguageFactory
public Modifier getModifier()
getModifier
in interface LanguageFactory
public Modifier getModifier(Modifier.Access access, boolean isStatic, boolean isFinal)
getModifier
in interface LanguageFactory
public final ClassTemplate getClassTemplate(java.lang.String pkg, java.lang.String name)
LanguageFactory
pkg
with name name
.getClassTemplate
in interface LanguageFactory
public final MethodTemplate getMethodTemplate(java.lang.String name)
getMethodTemplate
in interface LanguageFactory
public final FieldTemplate getFieldTemplate(Type type, java.lang.String name)
getFieldTemplate
in interface LanguageFactory
public FieldTemplate getConstantFieldTemplate(Type type, java.lang.String name)
LanguageFactory
getConstantFieldTemplate
in interface LanguageFactory
org.cantaloop.cgimlet.lang.LanguageFactory
type
- the type of the fieldname
- the name of the fieldFieldTemplate
valuepublic final Type getStringType()
LanguageFactory
getStringType
in interface LanguageFactory
public final Type getIntType()
LanguageFactory
getIntType
in interface LanguageFactory
public final Type getDoubleType()
LanguageFactory
getDoubleType
in interface LanguageFactory
public final Type getBoolType()
LanguageFactory
getBoolType
in interface LanguageFactory
public final Type getMapType()
LanguageFactory
getMapType
in interface LanguageFactory
public final Type getSetType()
LanguageFactory
getSetType
in interface LanguageFactory
public final Type getListType()
LanguageFactory
getListType
in interface LanguageFactory
public final Type getVoidType()
LanguageFactory
getVoidType
in interface LanguageFactory
public final Type getType(java.lang.String name)
LanguageFactory
getType
in interface LanguageFactory
public final CodeCompiler getCompiler()
getCompiler
in interface LanguageFactory
|
Copyright 2001, 2002 Stefan Heimann, David Leuschner. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |