Class RegExTypeInterpreter
- java.lang.Object
-
- de.monticore.regex.regextype._visitor.RegExTypeInterpreter
-
- All Implemented Interfaces:
de.monticore.interpreter.ModelInterpreter,IMCCommonLiteralsInterpreter,IMCLiteralsBasisInterpreter,IMCBasicsInterpreter,IRegExTypeInterpreter,IRegularExpressionsInterpreter,IMCBasicTypesInterpreter
public class RegExTypeInterpreter extends java.lang.Object implements IRegExTypeInterpreter
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<de.monticore.symboltable.ISymbol,de.monticore.interpreter.Value>contextMapprotected IMCBasicsInterpretermCBasicsInterpreterprotected IMCBasicTypesInterpretermCBasicTypesInterpreterprotected IMCCommonLiteralsInterpretermCCommonLiteralsInterpreterprotected IMCLiteralsBasisInterpretermCLiteralsBasisInterpreterprotected de.monticore.interpreter.ModelInterpreterrealThisprotected IRegularExpressionsInterpreterregularExpressionsInterpreter
-
Constructor Summary
Constructors Constructor Description RegExTypeInterpreter()RegExTypeInterpreter(de.monticore.interpreter.ModelInterpreter realThis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<de.monticore.symboltable.ISymbol,de.monticore.interpreter.Value>getContextMap()de.monticore.interpreter.ModelInterpretergetRealThis()de.monticore.interpreter.Valueinterpret(ASTBasicDoubleLiteral node)de.monticore.interpreter.Valueinterpret(ASTBasicFloatLiteral node)de.monticore.interpreter.Valueinterpret(ASTBasicLongLiteral node)de.monticore.interpreter.Valueinterpret(ASTBooleanLiteral node)de.monticore.interpreter.Valueinterpret(ASTCharLiteral node)de.monticore.interpreter.Valueinterpret(ASTMCCommonLiteralsNode node)de.monticore.interpreter.Valueinterpret(ASTNatLiteral node)de.monticore.interpreter.Valueinterpret(ASTNullLiteral node)de.monticore.interpreter.Valueinterpret(ASTNumericLiteral node)de.monticore.interpreter.Valueinterpret(ASTSignedBasicDoubleLiteral node)de.monticore.interpreter.Valueinterpret(ASTSignedBasicFloatLiteral node)de.monticore.interpreter.Valueinterpret(ASTSignedBasicLongLiteral node)de.monticore.interpreter.Valueinterpret(ASTSignedLiteral node)de.monticore.interpreter.Valueinterpret(ASTSignedNatLiteral node)de.monticore.interpreter.Valueinterpret(ASTSignedNumericLiteral node)de.monticore.interpreter.Valueinterpret(ASTStringLiteral node)de.monticore.interpreter.Valueinterpret(ASTLiteral node)de.monticore.interpreter.Valueinterpret(ASTMCLiteralsBasisNode node)de.monticore.interpreter.Valueinterpret(ASTMCBasicsNode node)de.monticore.interpreter.Valueinterpret(ASTRegExType node)de.monticore.interpreter.Valueinterpret(ASTRegExTypeNode node)de.monticore.interpreter.Valueinterpret(ASTBackReference node)de.monticore.interpreter.Valueinterpret(ASTBracketRegEx node)de.monticore.interpreter.Valueinterpret(ASTBracketRegExItem node)de.monticore.interpreter.Valueinterpret(ASTCapturingGroup node)de.monticore.interpreter.Valueinterpret(ASTCharOption node)de.monticore.interpreter.Valueinterpret(ASTCharRange node)de.monticore.interpreter.Valueinterpret(ASTEscapeChar node)de.monticore.interpreter.Valueinterpret(ASTNamedCapturingGroup node)de.monticore.interpreter.Valueinterpret(ASTNonCapturingGroup node)de.monticore.interpreter.Valueinterpret(ASTNumberQualification node)de.monticore.interpreter.Valueinterpret(ASTQualification node)de.monticore.interpreter.Valueinterpret(ASTQualifiedRegEx node)de.monticore.interpreter.Valueinterpret(ASTRangeQualification node)de.monticore.interpreter.Valueinterpret(ASTRegExChar node)de.monticore.interpreter.Valueinterpret(ASTRegExDigit node)de.monticore.interpreter.Valueinterpret(ASTRegExEscapeChar node)de.monticore.interpreter.Valueinterpret(ASTRegExItem node)de.monticore.interpreter.Valueinterpret(ASTRegExLiteral node)de.monticore.interpreter.Valueinterpret(ASTRegExPoint node)de.monticore.interpreter.Valueinterpret(ASTRegExQualification node)de.monticore.interpreter.Valueinterpret(ASTRegularExpression node)de.monticore.interpreter.Valueinterpret(ASTRegularExpressionsNode node)de.monticore.interpreter.Valueinterpret(ASTSpecialCharOption node)de.monticore.interpreter.Valueinterpret(ASTSpecificChars node)de.monticore.interpreter.Valueinterpret(ASTStartOfLine node)de.monticore.interpreter.Valueinterpret(ASTMCBasicTypesNode node)de.monticore.interpreter.Valueinterpret(ASTMCImportStatement node)de.monticore.interpreter.Valueinterpret(ASTMCObjectType node)de.monticore.interpreter.Valueinterpret(ASTMCPackageDeclaration node)de.monticore.interpreter.Valueinterpret(ASTMCPrimitiveType node)de.monticore.interpreter.Valueinterpret(ASTMCQualifiedName node)de.monticore.interpreter.Valueinterpret(ASTMCQualifiedType node)de.monticore.interpreter.Valueinterpret(ASTMCReturnType node)de.monticore.interpreter.Valueinterpret(ASTMCType node)de.monticore.interpreter.Valueinterpret(ASTMCVoidType node)de.monticore.interpreter.Valueload(de.monticore.symboltable.ISymbol symbol)voidsetRealThis(de.monticore.interpreter.ModelInterpreter realThis)voidstore(de.monticore.symboltable.ISymbol symbol, de.monticore.interpreter.Value value)
-
-
-
Field Detail
-
regularExpressionsInterpreter
protected IRegularExpressionsInterpreter regularExpressionsInterpreter
-
mCBasicTypesInterpreter
protected IMCBasicTypesInterpreter mCBasicTypesInterpreter
-
mCCommonLiteralsInterpreter
protected IMCCommonLiteralsInterpreter mCCommonLiteralsInterpreter
-
mCBasicsInterpreter
protected IMCBasicsInterpreter mCBasicsInterpreter
-
mCLiteralsBasisInterpreter
protected IMCLiteralsBasisInterpreter mCLiteralsBasisInterpreter
-
realThis
protected de.monticore.interpreter.ModelInterpreter realThis
-
contextMap
protected java.util.Map<de.monticore.symboltable.ISymbol,de.monticore.interpreter.Value> contextMap
-
-
Method Detail
-
getRealThis
public de.monticore.interpreter.ModelInterpreter getRealThis()
- Specified by:
getRealThisin interfacede.monticore.interpreter.ModelInterpreter
-
setRealThis
public void setRealThis(de.monticore.interpreter.ModelInterpreter realThis)
- Specified by:
setRealThisin interfacede.monticore.interpreter.ModelInterpreter
-
store
public void store(de.monticore.symboltable.ISymbol symbol, de.monticore.interpreter.Value value)- Specified by:
storein interfacede.monticore.interpreter.ModelInterpreter
-
load
public de.monticore.interpreter.Value load(de.monticore.symboltable.ISymbol symbol)
- Specified by:
loadin interfacede.monticore.interpreter.ModelInterpreter
-
getContextMap
public java.util.Map<de.monticore.symboltable.ISymbol,de.monticore.interpreter.Value> getContextMap()
- Specified by:
getContextMapin interfacede.monticore.interpreter.ModelInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegExType node)
- Specified by:
interpretin interfaceIRegExTypeInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegExTypeNode node)
- Specified by:
interpretin interfaceIRegExTypeInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegularExpression node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegExLiteral node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTBracketRegEx node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTCharOption node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTSpecialCharOption node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTCharRange node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTCapturingGroup node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTNamedCapturingGroup node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTNonCapturingGroup node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTBackReference node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegExChar node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegExPoint node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegExDigit node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTStartOfLine node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTQualifiedRegEx node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegExQualification node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRangeQualification node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTNumberQualification node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTSpecificChars node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegExEscapeChar node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegExItem node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTBracketRegExItem node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTQualification node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTEscapeChar node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTRegularExpressionsNode node)
- Specified by:
interpretin interfaceIRegularExpressionsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCQualifiedName node)
- Specified by:
interpretin interfaceIMCBasicTypesInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCPackageDeclaration node)
- Specified by:
interpretin interfaceIMCBasicTypesInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCImportStatement node)
- Specified by:
interpretin interfaceIMCBasicTypesInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCPrimitiveType node)
- Specified by:
interpretin interfaceIMCBasicTypesInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCQualifiedType node)
- Specified by:
interpretin interfaceIMCBasicTypesInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCReturnType node)
- Specified by:
interpretin interfaceIMCBasicTypesInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCVoidType node)
- Specified by:
interpretin interfaceIMCBasicTypesInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCType node)
- Specified by:
interpretin interfaceIMCBasicTypesInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCObjectType node)
- Specified by:
interpretin interfaceIMCBasicTypesInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCBasicTypesNode node)
- Specified by:
interpretin interfaceIMCBasicTypesInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTNullLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTBooleanLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTCharLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTStringLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTNatLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTSignedNatLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTBasicLongLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTSignedBasicLongLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTBasicFloatLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTSignedBasicFloatLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTBasicDoubleLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTSignedBasicDoubleLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTSignedLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTNumericLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTSignedNumericLiteral node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCCommonLiteralsNode node)
- Specified by:
interpretin interfaceIMCCommonLiteralsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCBasicsNode node)
- Specified by:
interpretin interfaceIMCBasicsInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTLiteral node)
- Specified by:
interpretin interfaceIMCLiteralsBasisInterpreter
-
interpret
public de.monticore.interpreter.Value interpret(ASTMCLiteralsBasisNode node)
- Specified by:
interpretin interfaceIMCLiteralsBasisInterpreter
-
-