|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cedarsoft.codegen.CodeGenerator
public class CodeGenerator
| Field Summary | |
|---|---|
protected com.sun.codemodel.JCodeModel |
model
|
| Constructor Summary | |
|---|---|
|
CodeGenerator(DecisionCallback decisionCallback)
|
protected |
CodeGenerator(com.sun.codemodel.JCodeModel model,
DecisionCallback decisionCallback)
|
| Method Summary | |
|---|---|
void |
addDecorator(Decorator decorator)
|
com.sun.codemodel.JFieldVar |
createConstant(com.sun.codemodel.JDefinedClass serializerClass,
Class<?> type,
String constantName,
com.sun.codemodel.JExpression initExpression)
|
com.sun.codemodel.JInvocation |
createGetterInvocation(com.sun.codemodel.JExpression object,
FieldDeclarationInfo fieldInfo)
|
ClassRefSupport |
getClassRefSupport()
|
DecisionCallback |
getDecisionCallback()
|
List<? extends Decorator> |
getDecorators()
|
com.sun.codemodel.JCodeModel |
getModel()
|
NewInstanceFactory |
getNewInstanceFactory()
|
com.sun.codemodel.JFieldVar |
getOrCreateConstant(com.sun.codemodel.JDefinedClass serializerClass,
Class<?> type,
String constantName,
com.sun.codemodel.JExpression initExpression)
|
ParseExpressionFactory |
getParseExpressionFactory()
|
boolean |
isPrimitiveType(com.sun.mirror.type.TypeMirror type)
|
com.sun.codemodel.JClass |
ref(Class<?> type)
|
com.sun.codemodel.JClass |
ref(String qualifiedName)
|
com.sun.codemodel.JClass |
ref(com.sun.mirror.type.TypeMirror type)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull protected final com.sun.codemodel.JCodeModel model
| Constructor Detail |
|---|
public CodeGenerator(@NotNull
DecisionCallback decisionCallback)
protected CodeGenerator(@NotNull
com.sun.codemodel.JCodeModel model,
@NotNull
DecisionCallback decisionCallback)
| Method Detail |
|---|
@NotNull public ParseExpressionFactory getParseExpressionFactory()
@NotNull public NewInstanceFactory getNewInstanceFactory()
@NotNull public com.sun.codemodel.JCodeModel getModel()
@NotNull public ClassRefSupport getClassRefSupport()
@NotNull public DecisionCallback getDecisionCallback()
public void addDecorator(@NotNull
Decorator decorator)
@NotNull public List<? extends Decorator> getDecorators()
@NotNull
public com.sun.codemodel.JFieldVar getOrCreateConstant(@NotNull
com.sun.codemodel.JDefinedClass serializerClass,
@NotNull
Class<?> type,
@NotNull@NonNls
String constantName,
@NotNull
com.sun.codemodel.JExpression initExpression)
@NotNull
public com.sun.codemodel.JFieldVar createConstant(@NotNull
com.sun.codemodel.JDefinedClass serializerClass,
@NotNull
Class<?> type,
@NotNull@NonNls
String constantName,
@NotNull
com.sun.codemodel.JExpression initExpression)
@NotNull
public com.sun.codemodel.JClass ref(@NotNull@NonNls
String qualifiedName)
@NotNull
public com.sun.codemodel.JClass ref(@NotNull@NonNls
Class<?> type)
@NotNull
public com.sun.codemodel.JInvocation createGetterInvocation(@NotNull
com.sun.codemodel.JExpression object,
@NotNull
FieldDeclarationInfo fieldInfo)
@NotNull
public com.sun.codemodel.JClass ref(@NotNull
com.sun.mirror.type.TypeMirror type)
public boolean isPrimitiveType(@NotNull
com.sun.mirror.type.TypeMirror type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||