Class ASTStringProvider
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- org.eclipse.viatra.query.patternlanguage.emf.vql.util.PatternLanguageSwitch<java.lang.String>
-
- org.eclipse.viatra.query.patternlanguage.emf.util.ASTStringProvider
-
public class ASTStringProvider extends PatternLanguageSwitch<java.lang.String>
Helper class to provide String representation for pattern language AST elements- Since:
- 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static ASTStringProviderINSTANCE-
Fields inherited from class org.eclipse.viatra.query.patternlanguage.emf.vql.util.PatternLanguageSwitch
modelPackage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcaseAggregatedValue(AggregatedValue object)Returns the result of interpreting the object as an instance of 'Aggregated Value'.java.lang.StringcaseAnnotation(Annotation object)Returns the result of interpreting the object as an instance of 'Annotation'.java.lang.StringcaseAnnotationParameter(AnnotationParameter object)Returns the result of interpreting the object as an instance of 'Annotation Parameter'.java.lang.StringcaseBoolValue(BoolValue object)Returns the result of interpreting the object as an instance of 'Bool Value'.java.lang.StringcaseCheckConstraint(CheckConstraint object)Returns the result of interpreting the object as an instance of 'Check Constraint'.java.lang.StringcaseClassType(ClassType object)Returns the result of interpreting the object as an instance of 'Class Type'.java.lang.StringcaseCompareConstraint(CompareConstraint object)Returns the result of interpreting the object as an instance of 'Compare Constraint'.java.lang.StringcaseEClassifierConstraint(EClassifierConstraint object)Returns the result of interpreting the object as an instance of 'EClassifier Constraint'.java.lang.StringcaseEnumValue(EnumValue object)Returns the result of interpreting the object as an instance of 'Enum Value'.java.lang.StringcaseFunctionEvaluationValue(FunctionEvaluationValue object)Returns the result of interpreting the object as an instance of 'Function Evaluation Value'.java.lang.StringcaseJavaType(JavaType object)Returns the result of interpreting the object as an instance of 'Java Type'.java.lang.StringcaseListValue(ListValue object)Returns the result of interpreting the object as an instance of 'List Value'.java.lang.StringcaseModifiers(Modifiers object)Returns the result of interpreting the object as an instance of 'Modifiers'.java.lang.StringcaseNumberValue(NumberValue object)Returns the result of interpreting the object as an instance of 'Number Value'.java.lang.StringcasePackageImport(PackageImport object)Returns the result of interpreting the object as an instance of 'Package Import'.java.lang.StringcaseParameter(Parameter object)Returns the result of interpreting the object as an instance of 'Parameter'.java.lang.StringcasePathExpressionConstraint(PathExpressionConstraint object)Returns the result of interpreting the object as an instance of 'Path Expression Constraint'.java.lang.StringcasePattern(Pattern object)Returns the result of interpreting the object as an instance of 'Pattern'.java.lang.StringcasePatternCall(PatternCall object)Returns the result of interpreting the object as an instance of 'Pattern Call'.java.lang.StringcasePatternCompositionConstraint(PatternCompositionConstraint object)Returns the result of interpreting the object as an instance of 'Pattern Composition Constraint'.java.lang.StringcasePatternImport(PatternImport object)Returns the result of interpreting the object as an instance of 'Pattern Import'.java.lang.StringcaseReferenceType(ReferenceType object)Returns the result of interpreting the object as an instance of 'Reference Type'.java.lang.StringcaseStringValue(StringValue object)Returns the result of interpreting the object as an instance of 'String Value'.java.lang.StringcaseTypeCheckConstraint(TypeCheckConstraint object)Returns the result of interpreting the object as an instance of 'Type Check Constraint'.java.lang.StringcaseVariable(Variable object)Returns the result of interpreting the object as an instance of 'Variable'.java.lang.StringcaseVariableReference(VariableReference object)Returns the result of interpreting the object as an instance of 'Variable Reference'.java.lang.StringdefaultCase(org.eclipse.emf.ecore.EObject object)Returns the result of interpreting the object as an instance of 'EObject'.-
Methods inherited from class org.eclipse.viatra.query.patternlanguage.emf.vql.util.PatternLanguageSwitch
caseCallableRelation, caseComputationValue, caseConstraint, caseEntityType, caseExpression, caseJavaConstantValue, caseLiteralValueReference, caseLocalVariable, caseParameterRef, casePatternBody, casePatternModel, caseRelationType, caseType, caseUnaryTypeConstraint, caseValueReference, caseVQLImportSection, caseXImportSection, doSwitch, isSwitchFor
-
-
-
-
Field Detail
-
INSTANCE
public static final ASTStringProvider INSTANCE
-
-
Method Detail
-
defaultCase
public java.lang.String defaultCase(org.eclipse.emf.ecore.EObject object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.- Overrides:
defaultCasein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
-
casePackageImport
public java.lang.String casePackageImport(PackageImport object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Package Import'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
casePackageImportin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Package Import'.
- See Also:
doSwitch(EObject)
-
casePatternImport
public java.lang.String casePatternImport(PatternImport object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Pattern Import'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
casePatternImportin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Pattern Import'.
- See Also:
doSwitch(EObject)
-
caseEClassifierConstraint
public java.lang.String caseEClassifierConstraint(EClassifierConstraint object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'EClassifier Constraint'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseEClassifierConstraintin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EClassifier Constraint'.
- See Also:
doSwitch(EObject)
-
caseEnumValue
public java.lang.String caseEnumValue(EnumValue object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Enum Value'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseEnumValuein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Enum Value'.
- See Also:
doSwitch(EObject)
-
caseClassType
public java.lang.String caseClassType(ClassType object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Class Type'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseClassTypein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Class Type'.
- See Also:
doSwitch(EObject)
-
caseReferenceType
public java.lang.String caseReferenceType(ReferenceType object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Reference Type'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseReferenceTypein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Reference Type'.
- See Also:
doSwitch(EObject)
-
casePattern
public java.lang.String casePattern(Pattern object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Pattern'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
casePatternin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Pattern'.
- See Also:
doSwitch(EObject)
-
caseAnnotation
public java.lang.String caseAnnotation(Annotation object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Annotation'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseAnnotationin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Annotation'.
- See Also:
doSwitch(EObject)
-
caseAnnotationParameter
public java.lang.String caseAnnotationParameter(AnnotationParameter object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Annotation Parameter'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseAnnotationParameterin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Annotation Parameter'.
- See Also:
doSwitch(EObject)
-
caseModifiers
public java.lang.String caseModifiers(Modifiers object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Modifiers'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseModifiersin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Modifiers'.
- See Also:
doSwitch(EObject)
-
caseVariable
public java.lang.String caseVariable(Variable object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Variable'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseVariablein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable'.
- See Also:
doSwitch(EObject)
-
caseVariableReference
public java.lang.String caseVariableReference(VariableReference object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Variable Reference'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseVariableReferencein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable Reference'.
- See Also:
doSwitch(EObject)
-
casePatternCall
public java.lang.String casePatternCall(PatternCall object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Pattern Call'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
casePatternCallin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Pattern Call'.
- See Also:
doSwitch(EObject)
-
caseParameter
public java.lang.String caseParameter(Parameter object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Parameter'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseParameterin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Parameter'.
- See Also:
doSwitch(EObject)
-
caseJavaType
public java.lang.String caseJavaType(JavaType object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Java Type'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseJavaTypein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Java Type'.
- See Also:
doSwitch(EObject)
-
caseTypeCheckConstraint
public java.lang.String caseTypeCheckConstraint(TypeCheckConstraint object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Type Check Constraint'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseTypeCheckConstraintin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Type Check Constraint'.
- See Also:
doSwitch(EObject)
-
casePatternCompositionConstraint
public java.lang.String casePatternCompositionConstraint(PatternCompositionConstraint object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Pattern Composition Constraint'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
casePatternCompositionConstraintin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Pattern Composition Constraint'.
- See Also:
doSwitch(EObject)
-
caseCompareConstraint
public java.lang.String caseCompareConstraint(CompareConstraint object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Compare Constraint'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseCompareConstraintin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Compare Constraint'.
- See Also:
doSwitch(EObject)
-
caseCheckConstraint
public java.lang.String caseCheckConstraint(CheckConstraint object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Check Constraint'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseCheckConstraintin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Check Constraint'.
- See Also:
doSwitch(EObject)
-
casePathExpressionConstraint
public java.lang.String casePathExpressionConstraint(PathExpressionConstraint object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Path Expression Constraint'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
casePathExpressionConstraintin classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Path Expression Constraint'.
- See Also:
doSwitch(EObject)
-
caseStringValue
public java.lang.String caseStringValue(StringValue object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'String Value'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseStringValuein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'String Value'.
- See Also:
doSwitch(EObject)
-
caseNumberValue
public java.lang.String caseNumberValue(NumberValue object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Number Value'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseNumberValuein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Number Value'.
- See Also:
doSwitch(EObject)
-
caseBoolValue
public java.lang.String caseBoolValue(BoolValue object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Bool Value'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseBoolValuein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Bool Value'.
- See Also:
doSwitch(EObject)
-
caseListValue
public java.lang.String caseListValue(ListValue object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'List Value'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseListValuein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'List Value'.
- See Also:
doSwitch(EObject)
-
caseFunctionEvaluationValue
public java.lang.String caseFunctionEvaluationValue(FunctionEvaluationValue object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Function Evaluation Value'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseFunctionEvaluationValuein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Function Evaluation Value'.
- See Also:
doSwitch(EObject)
-
caseAggregatedValue
public java.lang.String caseAggregatedValue(AggregatedValue object)
Description copied from class:PatternLanguageSwitchReturns the result of interpreting the object as an instance of 'Aggregated Value'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseAggregatedValuein classPatternLanguageSwitch<java.lang.String>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Aggregated Value'.
- See Also:
doSwitch(EObject)
-
-