public class QvtOperationalEnv extends QvtEnvironmentBase
QvtEnvironmentBase.CollisionStatus
Environment.Internal<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>, Environment.Lookup<PK,C,O,P>, Environment.Registry
Modifier and Type | Field and Description |
---|---|
static String |
MAIN |
static String |
METAMODEL_COMPLIANCE_KIND_STRICT |
static String |
TAG_ALIAS |
static String |
THIS |
GENERATED_NAME_SPECIAL_PREFIX
OCL_STANDARD_LIBRARY_NS_URI
OCL_NAMESPACE_URI, RESULT_VARIABLE_NAME, SELF_VARIABLE_NAME
addImplicitVariableForProperties, addImport, generateTemporaryName, getAdditionalOperations, getAllExtendedModules, getImplicitVariables, getImportedNativeLibs, getImportsByAccess, getImportsByExtends, getQVTStandardLibrary, getTypeResolver, getUMLReflection, isTemporaryElement, parserError, tryLookupImplicitSourceForOperation
defineAttribute, findPackage, findPackage, getDefinition, getHiddenOppositeProperties, getOCLFactory, getOCLStandardLibrary, getOppositeEndFinder, getOppositePropertyType, getStates, isInPostcondition, lookupImplicitSourceForOppositeProperty, lookupOppositeProperty, setParent, tryLookupOppositeProperty, tryLookupProperty, undefine
addElement, addHelperOperation, addHelperProperty, deleteElement, dispose, getAdapter, getAdditionalAttributes, getBodyCondition, getContextClassifier, getContextOperation, getContextPackage, getContextProperty, getDeriveConstraint, getInitConstraint, getInternalParent, getParent, getSelfVariable, getVariables, isEmpty, lookup, lookupAssociationClassReference, lookupImplicitSourceForAssociationClass, lookupImplicitSourceForSignal, lookupImplicitSourceForState, lookupOperation, lookupProperty, lookupSignal, lookupState, notOK, setBodyCondition, setDeriveConstraint, setInitConstraint, setInternalParent, setSelfVariable, tryLookupAssociationClassReference, tryLookupClassifier, tryLookupPackage, tryLookupSignal
analyzerError, analyzerError, analyzerWarning, clearOptions, getASTMapping, getASTNodeToCSTNodeMap, getFormatter, getOptions, getParser, getProblemHandler, getValue, initASTMapping, isEnabled, lexerError, problem, putOptions, removeOption, removeOptions, setASTNodeToCSTNodeMap, setOption, setParser, setProblemHandler, utilityError, validatorError
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addElement, defineAttribute, deleteElement, getAdditionalAttributes, getBodyCondition, getContextClassifier, getContextOperation, getContextPackage, getContextProperty, getDefinition, getDeriveConstraint, getInitConstraint, getOCLFactory, getOCLStandardLibrary, getParent, getSelfVariable, getStates, getVariables, isEmpty, isInPostcondition, lookup, lookupAssociationClassReference, lookupImplicitSourceForAssociationClass, lookupImplicitSourceForSignal, lookupImplicitSourceForState, lookupOperation, lookupProperty, lookupSignal, lookupState, setBodyCondition, setDeriveConstraint, setInitConstraint, setParent, setSelfVariable, undefine
analyzerError, analyzerError, analyzerWarning, getASTMapping, getFormatter, getParser, getProblemHandler, lexerError, problem, setParser, setProblemHandler, utilityError, validatorError
clearOptions, getOptions, getValue, isEnabled, putOptions, removeOption, removeOptions, setOption
public static final String THIS
public static final String MAIN
public static final String TAG_ALIAS
public static final String METAMODEL_COMPLIANCE_KIND_STRICT
public EPackage.Registry getEPackageRegistry()
public QvtOperationalEnvFactory getFactory()
getFactory
in interface Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
getFactory
in class EcoreEnvironment
public void setParentLocal()
public void enterInitMappingSection()
public void exitInitMappingSection()
public boolean isWithinInitMappingSection()
public Variable<EClassifier,EParameter> lookupLocal(String name)
lookupLocal
in interface Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
lookupLocal
in class AbstractEnvironment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
public EStructuralFeature lookupPropertyAlias(EClassifier owner, String aliasName)
public EOperation tryLookupOperation(EClassifier owner, String name, List<? extends TypedElement<EClassifier>> args) throws LookupException
tryLookupOperation
in interface Environment.Lookup<EPackage,EClassifier,EOperation,EStructuralFeature>
tryLookupOperation
in class AbstractEnvironment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
LookupException
public List<MappingOperation> lookupMappingOperations(EClassifier owner, String name)
public EOperation tryLookupConstructorOperation(EClassifier owner, String name, List<? extends TypedElement<EClassifier>> args) throws LookupException
LookupException
public QvtMessage reportError(String message, int startOffset, int endOffset)
public QvtMessage reportWarning(String message, int startOffset, int endOffset)
public QvtMessage reportError(String message, CSTNode node)
public QvtMessage reportWarning(String message, CSTNode node)
public boolean hasErrors()
public boolean hasWarnings()
public List<QvtMessage> getErrorsList()
public List<QvtMessage> getWarningsList()
public List<QvtMessage> getAllProblemMessages()
public void clearProblems()
public ModelType registerModelType(ModelType modelType)
lookupPackage(List)
and lookupClassifier(List)
null
public Variable<EClassifier,EParameter> lookupImplicitSourceForOperation(String name, List<? extends TypedElement<EClassifier>> args)
lookupImplicitSourceForOperation
in interface Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
lookupImplicitSourceForOperation
in class QvtEnvironmentBase
public Variable<EClassifier,EParameter> lookupImplicitSourceForProperty(String name)
lookupImplicitSourceForProperty
in interface Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
lookupImplicitSourceForProperty
in class QvtEnvironmentBase
public EClassifier lookupClassifier(List<String> names)
lookupClassifier
in interface Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
lookupClassifier
in class EcoreEnvironment
public EPackage lookupPackage(List<String> path)
lookupPackage
in interface Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
lookupPackage
in class EcoreEnvironment
public EOperation defineOperation(EClassifier owner, String name, EClassifier type, List<Variable<EClassifier,EParameter>> params, Constraint constraint)
defineOperation
in interface Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
defineOperation
in class EcoreEnvironment
public ImperativeOperation defineImperativeOperation(ImperativeOperation operation, boolean isMappingOperation, boolean isCheckDuplicates)
public Module getModuleContextType()
getModuleContextType
in interface QVTOEnvironment
getModuleContextType
in class QvtEnvironmentBase
public void setQvtCompilerOptions(QvtCompilerOptions options)
public void setCheckForDuplicateErrors(boolean checkForDuplicateErrors)
public void registerMappingOperation(MappingOperation operation)
public void registerResolveInExp(ResolveInExp resolveInExp, EClassifier referredMappingContextType, String mappingName)
public void resolveResolveInExpInMappings()
public void analyzerError(String problemMessage, String problemContext, Object problemObject)
analyzerError
in interface BasicEnvironment
analyzerError
in class AbstractBasicEnvironment
public void initASTMapping(Object astNode, CSTNode cstNode)
initASTMapping
in interface BasicEnvironment
initASTMapping
in class AbstractBasicEnvironment
public void close()
close
in interface QVTOEnvironment
close
in class QvtEnvironmentBase
public static boolean isMDTOCLCompatibilityFalseProblem(boolean allowCsUnboundValidationProblems, ProblemHandler.Severity problemSeverity, ProblemHandler.Phase processingPhase, String problemMessage, String processingContext, int startOffset, int endOffset)
allowCsUnboundValidationProblems
- false
indicates that all OCL AST
validation problems without CST binding will be recognized as a false compatibility problemCopyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.