|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.lpg.AbstractParser
org.eclipse.ocl.parser.AbstractOCLParser
public abstract class AbstractOCLParser
Field Summary | |
---|---|
protected java.util.Set<java.lang.String> |
iteratorNames
|
Constructor Summary | |
---|---|
AbstractOCLParser(AbstractLexer lexer)
|
|
AbstractOCLParser(BasicEnvironment environment)
|
Method Summary | |
---|---|
protected OperationCallExpCS |
createArrowOperationCallExpCS(OCLExpressionCS oclExpressionCS,
SimpleNameCS simpleNameCS,
IsMarkedPreCS isMarkedPreCS,
org.eclipse.emf.common.util.EList<OCLExpressionCS> arguments)
|
protected BooleanLiteralExpCS |
createBooleanLiteralExpCS(java.lang.String string)
|
protected ClassifierContextDeclCS |
createClassifierContextDeclCS(SimpleNameCS simpleNameCS,
PathNameCS pathNameCS,
org.eclipse.emf.common.util.EList<InvOrDefCS> constraints)
Creates a classifier context declaration. |
protected CollectionLiteralExpCS |
createCollectionLiteralExpCS(CollectionTypeCS typeCS,
org.eclipse.emf.common.util.EList<CollectionLiteralPartCS> collectionLiteralParts)
|
protected CollectionLiteralPartCS |
createCollectionLiteralPartCS(OCLExpressionCS oclExpressionCS)
|
protected CollectionRangeCS |
createCollectionRangeCS(OCLExpressionCS oclExpressionCS,
OCLExpressionCS lastOCLExpressionCS)
|
protected CollectionTypeCS |
createCollectionTypeCS(CollectionTypeIdentifierEnum collectionType,
java.lang.String value)
|
protected SimpleNameCS |
createConceptualOperationNameCS(lpg.runtime.IToken token)
|
protected DefCS |
createDefCS(boolean isStatic,
SimpleNameCS simpleNameCS,
DefExpressionCS defExpressionCS)
Creates a definition constraint. |
protected DefExpressionCS |
createDefExpressionCS(VariableCS variableCS,
OperationCS operationCS,
OCLExpressionCS oclExpressionCS)
|
protected DerValueCS |
createDerValueCS(OCLExpressionCS oclExpressionCS)
|
protected OperationCallExpCS |
createDotOperationCallExpCS(OCLExpressionCS oclExpressionCS,
PathNameCS pathNameCS,
SimpleNameCS simpleNameCS,
IsMarkedPreCS isMarkedPreCS,
org.eclipse.emf.common.util.EList<OCLExpressionCS> arguments)
|
protected FeatureCallExpCS |
createFeatureCallExpCS(OCLExpressionCS source,
PathNameCS pathNameCS,
SimpleNameCS simpleNameCS,
org.eclipse.emf.common.util.EList<OCLExpressionCS> arguments,
IsMarkedPreCS isMarkedPreCS)
|
protected IfExpCS |
createIfExpCS(OCLExpressionCS condition,
OCLExpressionCS thenExpression,
OCLExpressionCS elseExpression)
|
protected InitValueCS |
createInitValueCS(OCLExpressionCS oclExpressionCS)
|
protected IntegerLiteralExpCS |
createIntegerLiteralExpCS(java.lang.String string)
|
protected InvalidLiteralExpCS |
createInvalidLiteralExpCS(java.lang.String string)
|
protected InvCS |
createInvCS(SimpleNameCS simpleNameCS,
OCLExpressionCS oclExpressionCS)
Creates an invariant constraint. |
protected IsMarkedPreCS |
createIsMarkedPreCS()
|
protected IterateExpCS |
createIterateExpCS(OCLExpressionCS source,
SimpleNameCS simpleNameCS,
VariableCS variable1,
VariableCS variable2,
OCLExpressionCS oclExpressionCS)
|
protected IteratorExpCS |
createIteratorExpCS(OCLExpressionCS source,
SimpleNameCS simpleNameCS,
VariableCS variable1,
VariableCS variable2,
OCLExpressionCS oclExpressionCS)
|
protected java.util.Set<java.lang.String> |
createIteratorNames()
|
protected LetExpCS |
createLetExpCS(org.eclipse.emf.common.util.EList<VariableCS> variables,
OCLExpressionCS oclExpressionCS)
|
protected MessageExpCS |
createMessageExpCS(OCLExpressionCS target,
boolean hasSent,
SimpleNameCS simpleNameCS,
org.eclipse.emf.common.util.EList<OCLMessageArgCS> oclMessageArgs)
|
protected NullLiteralExpCS |
createNullLiteralExpCS(java.lang.String string)
|
protected OCLDocumentCS |
createOCLDocumentCS(PackageDeclarationCS packageDecl)
Creates an OCL document CS from a chain of package context declarations. |
protected OCLMessageArgCS |
createOCLMessageArgCS(TypeCS typeCS,
OCLExpressionCS oclExpressionCS)
|
protected OperationCallExpCS |
createOperationCallExpCS(OCLExpressionCS oclExpressionCS,
SimpleNameCS simpleNameCS,
org.eclipse.emf.common.util.EList<OCLExpressionCS> arguments)
|
protected OperationContextDeclCS |
createOperationContextDeclCS(OperationCS operationCS,
org.eclipse.emf.common.util.EList<PrePostOrBodyDeclCS> prePostOrBodyDecls)
|
protected OperationCS |
createOperationCS(lpg.runtime.IToken simpleName,
org.eclipse.emf.common.util.EList<VariableCS> list,
TypeCS typeCS)
|
protected OperationCS |
createOperationCS(PathNameCS pathNameCS,
SimpleNameCS simpleNameCS,
org.eclipse.emf.common.util.EList<VariableCS> list,
TypeCS typeCS)
|
protected PackageDeclarationCS |
createPackageDeclarationCS(PathNameCS pathNameCS,
org.eclipse.emf.common.util.EList<ContextDeclCS> contextDecls)
|
protected PathNameCS |
createPathNameCS()
|
protected PathNameCS |
createPathNameCS(SimpleNameCS name)
|
protected PathNameCS |
createPathNamePrefixCS(PathNameCS pathNameCS)
|
protected PrePostOrBodyDeclCS |
createPrePostOrBodyDeclCS(PrePostOrBodyEnum kind,
SimpleNameCS simpleNameCS,
OCLExpressionCS oclExpressionCS)
|
protected PrimitiveTypeCS |
createPrimitiveTypeCS(SimpleTypeEnum type,
java.lang.String value)
|
protected PropertyContextCS |
createPropertyContextCS(PathNameCS pathNameCS,
SimpleNameCS simpleNameCS,
TypeCS typeCS,
org.eclipse.emf.common.util.EList<InitOrDerValueCS> constraints)
|
protected SimpleNameCS |
createQuotedSimpleNameCS(SimpleTypeEnum type,
lpg.runtime.IToken token)
|
protected RealLiteralExpCS |
createRealLiteralExpCS(java.lang.String string)
|
protected SimpleNameCS |
createSimpleNameCS(SimpleTypeEnum type,
lpg.runtime.IToken token)
|
protected StringLiteralExpCS |
createStringLiteralExpCS(lpg.runtime.IToken token)
|
protected TupleLiteralExpCS |
createTupleLiteralExpCS(org.eclipse.emf.common.util.EList<VariableCS> variables)
|
protected TupleTypeCS |
createTupleTypeCS(org.eclipse.emf.common.util.EList<VariableCS> variables)
|
protected UnlimitedNaturalLiteralExpCS |
createUnlimitedNaturalLiteralExpCS(java.lang.String string)
|
protected VariableCS |
createVariableCS(SimpleNameCS varName,
TypeCS typeCS,
OCLExpressionCS oclExpressionCS)
|
protected VariableExpCS |
createVariableExpCS(SimpleNameCS simpleNameCS,
org.eclipse.emf.common.util.EList<OCLExpressionCS> arguments,
IsMarkedPreCS isMarkedPreCS)
|
protected PathNameCS |
extendPathNameCS(PathNameCS path,
SimpleNameCS name)
|
protected SimpleNameCS |
extendQuotedSimpleNameCS(SimpleNameCS simpleName,
lpg.runtime.IToken token)
|
protected StringLiteralExpCS |
extendStringLiteralExpCS(StringLiteralExpCS string,
lpg.runtime.IToken token)
|
protected SimpleNameCS |
getPathNameSuffixCS(PathNameCS pathNameCS)
|
protected boolean |
isAtPre(IsMarkedPreCS atPreCS)
Queries whether the specified @pre construct was actually present in the text. |
protected boolean |
isIterator(java.lang.String name)
|
protected boolean |
isNonStdSQSupported()
To be overridden in parsers which prohibit non-std SQL-like single quote escaping (" '' "). |
protected java.lang.String |
unescape(lpg.runtime.IToken stringLiteral)
Deprecated. Use decodeString. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Set<java.lang.String> iteratorNames
Constructor Detail |
---|
public AbstractOCLParser(BasicEnvironment environment)
public AbstractOCLParser(AbstractLexer lexer)
Method Detail |
---|
protected PackageDeclarationCS createPackageDeclarationCS(PathNameCS pathNameCS, org.eclipse.emf.common.util.EList<ContextDeclCS> contextDecls)
protected PropertyContextCS createPropertyContextCS(PathNameCS pathNameCS, SimpleNameCS simpleNameCS, TypeCS typeCS, org.eclipse.emf.common.util.EList<InitOrDerValueCS> constraints)
protected DerValueCS createDerValueCS(OCLExpressionCS oclExpressionCS)
protected InitValueCS createInitValueCS(OCLExpressionCS oclExpressionCS)
protected ClassifierContextDeclCS createClassifierContextDeclCS(SimpleNameCS simpleNameCS, PathNameCS pathNameCS, org.eclipse.emf.common.util.EList<InvOrDefCS> constraints)
pathNameCS
- the concrete syntax of the classifier's qualified nameconstraints
- the concrete syntax of the invariant and/or definition
constraints in the classifier context
protected InvCS createInvCS(SimpleNameCS simpleNameCS, OCLExpressionCS oclExpressionCS)
simpleNameCS
- the concrete syntax of the constraint name, or
null
if noneoclExpressionCS
- the concrete syntax of the constraint expression
protected DefCS createDefCS(boolean isStatic, SimpleNameCS simpleNameCS, DefExpressionCS defExpressionCS)
isStatic
- true for a static constraintsimpleNameCS
- the concrete syntax of the constraint nameoclExpressionCS
- the concrete syntax of the constraint expression
protected DefExpressionCS createDefExpressionCS(VariableCS variableCS, OperationCS operationCS, OCLExpressionCS oclExpressionCS)
protected OperationContextDeclCS createOperationContextDeclCS(OperationCS operationCS, org.eclipse.emf.common.util.EList<PrePostOrBodyDeclCS> prePostOrBodyDecls)
protected PrePostOrBodyDeclCS createPrePostOrBodyDeclCS(PrePostOrBodyEnum kind, SimpleNameCS simpleNameCS, OCLExpressionCS oclExpressionCS)
protected OperationCS createOperationCS(PathNameCS pathNameCS, SimpleNameCS simpleNameCS, org.eclipse.emf.common.util.EList<VariableCS> list, TypeCS typeCS)
protected OperationCS createOperationCS(lpg.runtime.IToken simpleName, org.eclipse.emf.common.util.EList<VariableCS> list, TypeCS typeCS)
protected boolean isAtPre(IsMarkedPreCS atPreCS)
atPreCS
- an "at pre" construct or null
true
if the atPreCS is present;
false
, otherwiseprotected OperationCallExpCS createOperationCallExpCS(OCLExpressionCS oclExpressionCS, SimpleNameCS simpleNameCS, org.eclipse.emf.common.util.EList<OCLExpressionCS> arguments)
protected OperationCallExpCS createArrowOperationCallExpCS(OCLExpressionCS oclExpressionCS, SimpleNameCS simpleNameCS, IsMarkedPreCS isMarkedPreCS, org.eclipse.emf.common.util.EList<OCLExpressionCS> arguments)
protected OperationCallExpCS createDotOperationCallExpCS(OCLExpressionCS oclExpressionCS, PathNameCS pathNameCS, SimpleNameCS simpleNameCS, IsMarkedPreCS isMarkedPreCS, org.eclipse.emf.common.util.EList<OCLExpressionCS> arguments)
protected VariableExpCS createVariableExpCS(SimpleNameCS simpleNameCS, org.eclipse.emf.common.util.EList<OCLExpressionCS> arguments, IsMarkedPreCS isMarkedPreCS)
protected SimpleNameCS createConceptualOperationNameCS(lpg.runtime.IToken token)
protected SimpleNameCS createSimpleNameCS(SimpleTypeEnum type, lpg.runtime.IToken token)
protected SimpleNameCS createQuotedSimpleNameCS(SimpleTypeEnum type, lpg.runtime.IToken token)
protected PrimitiveTypeCS createPrimitiveTypeCS(SimpleTypeEnum type, java.lang.String value)
protected PathNameCS createPathNameCS(SimpleNameCS name)
protected PathNameCS extendPathNameCS(PathNameCS path, SimpleNameCS name)
protected PathNameCS createPathNameCS()
protected PathNameCS createPathNamePrefixCS(PathNameCS pathNameCS)
protected SimpleNameCS getPathNameSuffixCS(PathNameCS pathNameCS)
protected CollectionLiteralExpCS createCollectionLiteralExpCS(CollectionTypeCS typeCS, org.eclipse.emf.common.util.EList<CollectionLiteralPartCS> collectionLiteralParts)
protected CollectionLiteralPartCS createCollectionLiteralPartCS(OCLExpressionCS oclExpressionCS)
protected CollectionRangeCS createCollectionRangeCS(OCLExpressionCS oclExpressionCS, OCLExpressionCS lastOCLExpressionCS)
protected TupleLiteralExpCS createTupleLiteralExpCS(org.eclipse.emf.common.util.EList<VariableCS> variables)
protected IntegerLiteralExpCS createIntegerLiteralExpCS(java.lang.String string)
protected UnlimitedNaturalLiteralExpCS createUnlimitedNaturalLiteralExpCS(java.lang.String string)
protected RealLiteralExpCS createRealLiteralExpCS(java.lang.String string)
protected StringLiteralExpCS createStringLiteralExpCS(lpg.runtime.IToken token)
protected SimpleNameCS extendQuotedSimpleNameCS(SimpleNameCS simpleName, lpg.runtime.IToken token)
protected StringLiteralExpCS extendStringLiteralExpCS(StringLiteralExpCS string, lpg.runtime.IToken token)
protected BooleanLiteralExpCS createBooleanLiteralExpCS(java.lang.String string)
protected NullLiteralExpCS createNullLiteralExpCS(java.lang.String string)
protected InvalidLiteralExpCS createInvalidLiteralExpCS(java.lang.String string)
protected IteratorExpCS createIteratorExpCS(OCLExpressionCS source, SimpleNameCS simpleNameCS, VariableCS variable1, VariableCS variable2, OCLExpressionCS oclExpressionCS)
protected IterateExpCS createIterateExpCS(OCLExpressionCS source, SimpleNameCS simpleNameCS, VariableCS variable1, VariableCS variable2, OCLExpressionCS oclExpressionCS)
protected VariableCS createVariableCS(SimpleNameCS varName, TypeCS typeCS, OCLExpressionCS oclExpressionCS)
protected CollectionTypeCS createCollectionTypeCS(CollectionTypeIdentifierEnum collectionType, java.lang.String value)
protected TupleTypeCS createTupleTypeCS(org.eclipse.emf.common.util.EList<VariableCS> variables)
protected FeatureCallExpCS createFeatureCallExpCS(OCLExpressionCS source, PathNameCS pathNameCS, SimpleNameCS simpleNameCS, org.eclipse.emf.common.util.EList<OCLExpressionCS> arguments, IsMarkedPreCS isMarkedPreCS)
protected IsMarkedPreCS createIsMarkedPreCS()
protected LetExpCS createLetExpCS(org.eclipse.emf.common.util.EList<VariableCS> variables, OCLExpressionCS oclExpressionCS)
protected IfExpCS createIfExpCS(OCLExpressionCS condition, OCLExpressionCS thenExpression, OCLExpressionCS elseExpression)
protected MessageExpCS createMessageExpCS(OCLExpressionCS target, boolean hasSent, SimpleNameCS simpleNameCS, org.eclipse.emf.common.util.EList<OCLMessageArgCS> oclMessageArgs)
protected OCLMessageArgCS createOCLMessageArgCS(TypeCS typeCS, OCLExpressionCS oclExpressionCS)
protected OCLDocumentCS createOCLDocumentCS(PackageDeclarationCS packageDecl)
packageDecl
- a chain of package context declarations
protected java.util.Set<java.lang.String> createIteratorNames()
protected boolean isIterator(java.lang.String name)
@Deprecated protected java.lang.String unescape(lpg.runtime.IToken stringLiteral)
Escaping support based on the QVT specification (8.4.3).
stringLiteral
- a string literal token with escape notation
protected boolean isNonStdSQSupported()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |