org.eclipse.ocl.examples.codegen.oclinjunit
Class JUnitLocalContext

java.lang.Object
  extended by org.eclipse.ocl.examples.codegen.java.AbstractJavaContext
      extended by org.eclipse.ocl.examples.codegen.java.JavaLocalContext
          extended by org.eclipse.ocl.examples.codegen.oclinjunit.JUnitLocalContext
All Implemented Interfaces:
LocalContext

public class JUnitLocalContext
extends JavaLocalContext

A JavaLocalContext maintains the Java-specific context for generation of coide from a CGOperation.


Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.codegen.java.JavaLocalContext
cgScope, globalContext, nameManagerContext, parentContext
 
Fields inherited from class org.eclipse.ocl.examples.codegen.java.AbstractJavaContext
analyzer, codeGenerator
 
Constructor Summary
JUnitLocalContext(JUnitGlobalContext globalContext, CGElement cgScope)
           
JUnitLocalContext(JUnitLocalContext parentContext, CGElement cgScope)
           
 
Method Summary
 JUnitLocalContext createNestedContext(CGElement cgScope)
           
 CGParameter getCastParameter(CGParameter cgParameter)
           
 JUnitGlobalContext getGlobalContext()
           
 
Methods inherited from class org.eclipse.ocl.examples.codegen.java.JavaLocalContext
addCastParameter, addDependency, addLocalVariable, basicGetCastParameter, createCastParameter, getCastParameters, getEvaluatorParameter, getExecutorProperty, getExecutorType, getExecutorType, getIdResolverVariable, getLocalVariables, getNameManagerContext, getOuterContext, getStandardLibraryVariable, getTypeIdParameter, getValueName, setNames, setNames
 
Methods inherited from class org.eclipse.ocl.examples.codegen.java.AbstractJavaContext
getAnalyzer, getCodeGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitLocalContext

public JUnitLocalContext(@NonNull
                         JUnitGlobalContext globalContext,
                         @NonNull
                         CGElement cgScope)

JUnitLocalContext

public JUnitLocalContext(@NonNull
                         JUnitLocalContext parentContext,
                         @NonNull
                         CGElement cgScope)
Method Detail

createNestedContext

@NonNull
public JUnitLocalContext createNestedContext(@NonNull
                                                     CGElement cgScope)
Specified by:
createNestedContext in class JavaLocalContext

getCastParameter

@NonNull
public CGParameter getCastParameter(@NonNull
                                            CGParameter cgParameter)
Overrides:
getCastParameter in class JavaLocalContext

getGlobalContext

@NonNull
public JUnitGlobalContext getGlobalContext()
Overrides:
getGlobalContext in class JavaLocalContext