org.eclipse.ocl.examples.codegen.oclinjunit
Class JUnitCodeGenerator
java.lang.Object
org.eclipse.ocl.examples.codegen.generator.AbstractCodeGenerator
org.eclipse.ocl.examples.codegen.java.JavaCodeGenerator
org.eclipse.ocl.examples.codegen.oclinjunit.JUnitCodeGenerator
- All Implemented Interfaces:
- CodeGenerator
public class JUnitCodeGenerator
- extends JavaCodeGenerator
OCL2JavaClass supports generation of the content of a JavaClassFile with a ststic INSTANCE to provide the polymorphic implementation
of an ExpressionInOCL.
Methods inherited from class org.eclipse.ocl.examples.codegen.java.JavaCodeGenerator |
createBoxingAnalyzer, createCG2JavaPreVisitor, createDependencyVisitor, createDependencyVisitor, createFieldingAnalyzer, createGenModelHelper, createId2BoxedJavaClassVisitor, createId2EClassVisitor, createId2UnboxedJavaClassVisitor, createNameManager, getConstantsClass, getEClass, getGlobalContext, getId2BoxedClassVisitor, getId2EClassVisitor, getId2UnboxedClassVisitor, getIterationHelper, getTypeDescriptor, getTypeDescriptor, initPrimitive |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cgAnalyzer
@NonNull
protected final CodeGenAnalyzer cgAnalyzer
expInOcl
@NonNull
protected final ExpressionInOCL expInOcl
JUnitCodeGenerator
public JUnitCodeGenerator(@NonNull
MetaModelManager metaModelManager,
@NonNull
ExpressionInOCL expInOcl,
boolean useNullAnnotations)
generateClassFile
@NonNull
public java.lang.String generateClassFile(java.lang.String packageName,
java.lang.String className)
createGlobalContext
@NonNull
protected JUnitGlobalContext createGlobalContext()
- Specified by:
createGlobalContext
in class JavaCodeGenerator
getAnalyzer
@NonNull
public CodeGenAnalyzer getAnalyzer()