org.eclipse.ocl.examples.codegen.oclinecore
Class OCLinEcoreLocalContext

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.oclinecore.OCLinEcoreLocalContext
All Implemented Interfaces:
LocalContext

public class OCLinEcoreLocalContext
extends JavaLocalContext

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


Field Summary
protected  java.lang.String contextName
           
protected  java.lang.String diagnosticsName
           
protected  java.lang.String messageName
           
protected  java.lang.String severityName
           
 
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
OCLinEcoreLocalContext(JavaGlobalContext globalContext, CGElement cgScope)
           
 
Method Summary
 CGParameter createEvaluatorParameter()
           
 CGValuedElement createEvaluatorVariable()
           
 CGValuedElement createIdResolverVariable()
           
 CGParameter createTypeIdParameter()
           
 java.lang.String getContextName()
           
 java.lang.String getDiagnosticsName()
           
 OCLinEcoreGlobalContext getGlobalContext()
           
 java.lang.String getMessageName()
           
 java.lang.String getSeverityName()
           
 
Methods inherited from class org.eclipse.ocl.examples.codegen.java.JavaLocalContext
createStandardLibraryVariable, getEvaluatorParameter, getIdResolverVariable, getNameManagerContext, getOuterContext, getOwned, getStandardLibraryVariable, getTypeIdParameter, getValueName, setNames, setNames, setNames2
 
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
 

Field Detail

contextName

@Nullable
protected final java.lang.String contextName

diagnosticsName

@Nullable
protected final java.lang.String diagnosticsName

messageName

@Nullable
protected final java.lang.String messageName

severityName

@Nullable
protected final java.lang.String severityName
Constructor Detail

OCLinEcoreLocalContext

public OCLinEcoreLocalContext(@NonNull
                              JavaGlobalContext globalContext,
                              @NonNull
                              CGElement cgScope)
Method Detail

createEvaluatorParameter

@Nullable
public CGParameter createEvaluatorParameter()
Overrides:
createEvaluatorParameter in class JavaLocalContext

createEvaluatorVariable

@Nullable
public CGValuedElement createEvaluatorVariable()
Overrides:
createEvaluatorVariable in class JavaLocalContext

createIdResolverVariable

@NonNull
public CGValuedElement createIdResolverVariable()
Overrides:
createIdResolverVariable in class JavaLocalContext

createTypeIdParameter

@Nullable
public CGParameter createTypeIdParameter()
Overrides:
createTypeIdParameter in class JavaLocalContext

getContextName

@Nullable
public java.lang.String getContextName()

getDiagnosticsName

@Nullable
public java.lang.String getDiagnosticsName()

getGlobalContext

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

getMessageName

@Nullable
public java.lang.String getMessageName()

getSeverityName

@Nullable
public java.lang.String getSeverityName()