Package org.intocps.maestro.ast
Class MableAstFactory
java.lang.Object
org.intocps.maestro.ast.MableAstFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.intocps.maestro.ast.node.AArrayStateDesignatornewAArayStateDesignator(org.intocps.maestro.ast.node.PStateDesignator target, org.intocps.maestro.ast.node.PExp exp) static org.intocps.maestro.ast.node.AArrayIndexExpnewAArrayIndexExp(org.intocps.maestro.ast.node.PExp array, List<? extends org.intocps.maestro.ast.node.PExp> values) static org.intocps.maestro.ast.node.AArrayInitializernewAArrayInitializer(List<? extends org.intocps.maestro.ast.node.PExp> args) static org.intocps.maestro.ast.node.AArrayTypenewAArrayType(org.intocps.maestro.ast.node.PType arrayType) static org.intocps.maestro.ast.node.AAssigmentStmnewAAssignmentStm(org.intocps.maestro.ast.node.PStateDesignator target, org.intocps.maestro.ast.node.PExp exp) static ABasicBlockStmnewABlockStm(List<? extends org.intocps.maestro.ast.node.PStm> statements) static ABasicBlockStmnewABlockStm(org.intocps.maestro.ast.node.PStm... statements) static org.intocps.maestro.ast.node.ABooleanPrimitiveTypestatic org.intocps.maestro.ast.node.ABoolLiteralExpnewABoolLiteralExp(Boolean value) static org.intocps.maestro.ast.node.ACallExpnewACallExp(LexIdentifier identifier, List<? extends org.intocps.maestro.ast.node.PExp> args_) static org.intocps.maestro.ast.node.ACallExpnewACallExp(LexToken expand, LexIdentifier identifier, List<? extends org.intocps.maestro.ast.node.PExp> args_) static org.intocps.maestro.ast.node.ACallExpnewACallExp(LexToken expand, org.intocps.maestro.ast.node.PExp object, LexIdentifier identifier, List<? extends org.intocps.maestro.ast.node.PExp> args_) static org.intocps.maestro.ast.node.ACallExpnewACallExp(org.intocps.maestro.ast.node.PExp object, LexIdentifier identifier, List<? extends org.intocps.maestro.ast.node.PExp> args_) static AEqualBinaryExpnewAEqualBinaryExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static org.intocps.maestro.ast.node.AExpInitializernewAExpInitializer(org.intocps.maestro.ast.node.PExp exp) static org.intocps.maestro.ast.node.AFieldExpnewAFieldExp(org.intocps.maestro.ast.node.PExp root, LexIdentifier field) static org.intocps.maestro.ast.node.AFloatLiteralExpnewAFloatLiteralExp(Float value) static org.intocps.maestro.ast.node.AFloatNumericPrimitiveTypestatic org.intocps.maestro.ast.node.AFmuMappingStmnewAFMUMappingStm(LexIdentifier mablName, String envName) static org.intocps.maestro.ast.node.AFormalParameternewAFormalParameter(org.intocps.maestro.ast.node.PType type, LexIdentifier name) static AFunctionDeclarationnewAFunctionDeclaration(LexIdentifier name, List<? extends org.intocps.maestro.ast.node.AFormalParameter> arguments, org.intocps.maestro.ast.node.PType returnType) static AGreaterBinaryExpnewAGreaterBinaryExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static AGreaterEqualBinaryExpnewAGreaterEqualBinaryExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static LexIdentifiernewAIdentifier(String identifier) static org.intocps.maestro.ast.node.AIdentifierExpnewAIdentifierExp(String name) static org.intocps.maestro.ast.node.AIdentifierExpstatic org.intocps.maestro.ast.node.AIdentifierStateDesignatorstatic org.intocps.maestro.ast.node.AIdentifierStateDesignatorstatic org.intocps.maestro.ast.node.AInstanceMappingStmnewAInstanceMappingStm(LexIdentifier mablName, String envName) static org.intocps.maestro.ast.node.AIntLiteralExpnewAIntLiteralExp(Integer value) static org.intocps.maestro.ast.node.AIntNumericPrimitiveTypestatic ALessBinaryExpnewALessBinaryExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static ALessEqualBinaryExpnewALessEqualBinaryExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static org.intocps.maestro.ast.node.ALoadExpnewALoadExp(URI uri) static org.intocps.maestro.ast.node.ALoadExpnewALoadExp(List<? extends org.intocps.maestro.ast.node.PExp> args) static org.intocps.maestro.ast.node.ALocalVariableStmnewALocalVariableStm(AVariableDeclaration aVariableDeclaration) static org.intocps.maestro.ast.node.AModuleTypenewAModuleType(LexIdentifier name) static org.intocps.maestro.ast.node.ANameTypenewANameType(String name) static org.intocps.maestro.ast.node.ANameTypenewANameType(LexIdentifier name) static AAndBinaryExpnewAnd(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static org.intocps.maestro.ast.node.PExpnewAParExp(org.intocps.maestro.ast.node.PExp exp) static org.intocps.maestro.ast.node.ARealLiteralExpnewARealLiteralExp(Double value) static org.intocps.maestro.ast.node.ARealNumericPrimitiveTypestatic org.intocps.maestro.ast.node.ARefExpnewARefExp(LexIdentifier name) static org.intocps.maestro.ast.node.ARefExpnewARefExp(org.intocps.maestro.ast.node.PExp expression) static org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnitnewASimulationSpecificationCompilationUnit(List<? extends LexIdentifier> imports, org.intocps.maestro.ast.node.PStm body) static org.intocps.maestro.ast.node.AStringLiteralExpnewAStringLiteralExp(String value) static org.intocps.maestro.ast.node.AStringPrimitiveTypestatic org.intocps.maestro.ast.node.AUIntLiteralExpnewAUIntLiteralExp(Long value) static org.intocps.maestro.ast.node.AUIntNumericPrimitiveTypestatic org.intocps.maestro.ast.node.AUnknownTypestatic AVariableDeclarationnewAVariableDeclaration(boolean external, LexIdentifier name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PInitializer initializer_) static AVariableDeclarationnewAVariableDeclaration(LexIdentifier name, org.intocps.maestro.ast.node.PType type) static AVariableDeclarationnewAVariableDeclaration(LexIdentifier name, org.intocps.maestro.ast.node.PType type, int size, org.intocps.maestro.ast.node.PInitializer initializer_) static AVariableDeclarationnewAVariableDeclaration(LexIdentifier name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PExp size, org.intocps.maestro.ast.node.PInitializer initializer_) static AVariableDeclarationnewAVariableDeclaration(LexIdentifier name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PInitializer initializer_) static AVariableDeclarationnewAVariableDeclaration(LexIdentifier name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PInitializer initializer_, List<org.intocps.maestro.ast.node.PExp> size) static AVariableDeclarationnewAVariableDeclarationMultiDimensionalArray(LexIdentifier name, org.intocps.maestro.ast.node.PType type, List<Integer> shape) static org.intocps.maestro.ast.node.AVoidTypestatic org.intocps.maestro.ast.node.ABooleanPrimitiveTypestatic org.intocps.maestro.ast.node.ABreakStmnewBreak()static ADivideBinaryExpnewDivideExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static AEqualBinaryExpnewEqual(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static org.intocps.maestro.ast.node.AErrorStmnewError(org.intocps.maestro.ast.node.PExp exp) static LexTokenstatic org.intocps.maestro.ast.node.AExpressionStmnewExpressionStm(org.intocps.maestro.ast.node.PExp exp) static org.intocps.maestro.ast.node.AIfStmnewIf(org.intocps.maestro.ast.node.PExp test, org.intocps.maestro.ast.node.PStm thenStm, org.intocps.maestro.ast.node.PStm elseStm) static org.intocps.maestro.ast.node.AIntNumericPrimitiveTypestatic LexIdentifiernewLexIdentifier(String identifier) static AMinusBinaryExpnewMinusExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static AMultiplyBinaryExpnewMultiplyExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static ANotUnaryExpnewNot(org.intocps.maestro.ast.node.PExp exp) static ANotEqualBinaryExpnewNotEqual(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static org.intocps.maestro.ast.node.ANullExpstatic org.intocps.maestro.ast.node.ANullTypestatic AOrBinaryExpnewOr(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static org.intocps.maestro.ast.node.AParExpnewPar(org.intocps.maestro.ast.node.PExp exp) static APlusBinaryExpnewPlusExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) static org.intocps.maestro.ast.node.ARealNumericPrimitiveTypestatic org.intocps.maestro.ast.node.AStringPrimitiveTypestatic org.intocps.maestro.ast.node.ATryStmnewTry(ABasicBlockStm bodyStm, ABasicBlockStm finallyStm) static org.intocps.maestro.ast.node.AUIntNumericPrimitiveTypestatic org.intocps.maestro.ast.node.AUnloadExpnewUnloadExp(List<? extends org.intocps.maestro.ast.node.PExp> args) static org.intocps.maestro.ast.node.AUnloadExpnewUnloadExp(org.intocps.maestro.ast.node.PExp... args) static org.intocps.maestro.ast.node.AWhileStmnewWhile(org.intocps.maestro.ast.node.PExp test, org.intocps.maestro.ast.node.PStm body)
-
Constructor Details
-
MableAstFactory
public MableAstFactory()
-
-
Method Details
-
newAUIntNumericPrimitiveType
public static org.intocps.maestro.ast.node.AUIntNumericPrimitiveType newAUIntNumericPrimitiveType() -
newARefExp
public static org.intocps.maestro.ast.node.ARefExp newARefExp(org.intocps.maestro.ast.node.PExp expression) -
newARefExp
-
newAModuleType
-
newAIdentifierExp
-
newAInstanceMappingStm
public static org.intocps.maestro.ast.node.AInstanceMappingStm newAInstanceMappingStm(LexIdentifier mablName, String envName) -
newAFMUMappingStm
public static org.intocps.maestro.ast.node.AFmuMappingStm newAFMUMappingStm(LexIdentifier mablName, String envName) -
newAIdentifierExp
-
newAVariableDeclaration
public static AVariableDeclaration newAVariableDeclaration(LexIdentifier name, org.intocps.maestro.ast.node.PType type) -
newAVariableDeclaration
public static AVariableDeclaration newAVariableDeclaration(LexIdentifier name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PInitializer initializer_) -
newAVariableDeclaration
public static AVariableDeclaration newAVariableDeclaration(boolean external, LexIdentifier name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PInitializer initializer_) -
newAVariableDeclaration
public static AVariableDeclaration newAVariableDeclaration(LexIdentifier name, org.intocps.maestro.ast.node.PType type, int size, org.intocps.maestro.ast.node.PInitializer initializer_) -
newAVariableDeclarationMultiDimensionalArray
public static AVariableDeclaration newAVariableDeclarationMultiDimensionalArray(LexIdentifier name, org.intocps.maestro.ast.node.PType type, List<Integer> shape) -
newAVariableDeclaration
public static AVariableDeclaration newAVariableDeclaration(LexIdentifier name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PExp size, org.intocps.maestro.ast.node.PInitializer initializer_) -
newNullExp
public static org.intocps.maestro.ast.node.ANullExp newNullExp() -
newASimulationSpecificationCompilationUnit
public static org.intocps.maestro.ast.node.ASimulationSpecificationCompilationUnit newASimulationSpecificationCompilationUnit(List<? extends LexIdentifier> imports, org.intocps.maestro.ast.node.PStm body) -
newWhile
public static org.intocps.maestro.ast.node.AWhileStm newWhile(org.intocps.maestro.ast.node.PExp test, org.intocps.maestro.ast.node.PStm body) -
newIf
public static org.intocps.maestro.ast.node.AIfStm newIf(org.intocps.maestro.ast.node.PExp test, org.intocps.maestro.ast.node.PStm thenStm, org.intocps.maestro.ast.node.PStm elseStm) -
newTry
public static org.intocps.maestro.ast.node.ATryStm newTry(ABasicBlockStm bodyStm, ABasicBlockStm finallyStm) -
newLexIdentifier
-
newALessBinaryExp
public static ALessBinaryExp newALessBinaryExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newAGreaterBinaryExp
public static AGreaterBinaryExp newAGreaterBinaryExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newAGreaterEqualBinaryExp
public static AGreaterEqualBinaryExp newAGreaterEqualBinaryExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newAEqualBinaryExp
public static AEqualBinaryExp newAEqualBinaryExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newALessEqualBinaryExp
public static ALessEqualBinaryExp newALessEqualBinaryExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newNot
-
newEqual
public static AEqualBinaryExp newEqual(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newNotEqual
public static ANotEqualBinaryExp newNotEqual(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newAVariableDeclaration
public static AVariableDeclaration newAVariableDeclaration(LexIdentifier name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PInitializer initializer_, List<org.intocps.maestro.ast.node.PExp> size) -
newANameType
-
newANameType
-
newALoadExp
-
newUnloadExp
public static org.intocps.maestro.ast.node.AUnloadExp newUnloadExp(List<? extends org.intocps.maestro.ast.node.PExp> args) -
newUnloadExp
public static org.intocps.maestro.ast.node.AUnloadExp newUnloadExp(org.intocps.maestro.ast.node.PExp... args) -
newExpressionStm
public static org.intocps.maestro.ast.node.AExpressionStm newExpressionStm(org.intocps.maestro.ast.node.PExp exp) -
newALoadExp
public static org.intocps.maestro.ast.node.ALoadExp newALoadExp(List<? extends org.intocps.maestro.ast.node.PExp> args) -
newACallExp
public static org.intocps.maestro.ast.node.ACallExp newACallExp(LexIdentifier identifier, List<? extends org.intocps.maestro.ast.node.PExp> args_) -
newExpandToken
-
newACallExp
public static org.intocps.maestro.ast.node.ACallExp newACallExp(LexToken expand, LexIdentifier identifier, List<? extends org.intocps.maestro.ast.node.PExp> args_) -
newACallExp
public static org.intocps.maestro.ast.node.ACallExp newACallExp(LexToken expand, org.intocps.maestro.ast.node.PExp object, LexIdentifier identifier, List<? extends org.intocps.maestro.ast.node.PExp> args_) -
newACallExp
public static org.intocps.maestro.ast.node.ACallExp newACallExp(org.intocps.maestro.ast.node.PExp object, LexIdentifier identifier, List<? extends org.intocps.maestro.ast.node.PExp> args_) -
newAExpInitializer
public static org.intocps.maestro.ast.node.AExpInitializer newAExpInitializer(org.intocps.maestro.ast.node.PExp exp) -
newAFieldExp
public static org.intocps.maestro.ast.node.AFieldExp newAFieldExp(org.intocps.maestro.ast.node.PExp root, LexIdentifier field) -
newALocalVariableStm
public static org.intocps.maestro.ast.node.ALocalVariableStm newALocalVariableStm(AVariableDeclaration aVariableDeclaration) -
newABlockStm
public static ABasicBlockStm newABlockStm(List<? extends org.intocps.maestro.ast.node.PStm> statements) -
newABlockStm
-
newAFunctionDeclaration
public static AFunctionDeclaration newAFunctionDeclaration(LexIdentifier name, List<? extends org.intocps.maestro.ast.node.AFormalParameter> arguments, org.intocps.maestro.ast.node.PType returnType) -
newAFormalParameter
public static org.intocps.maestro.ast.node.AFormalParameter newAFormalParameter(org.intocps.maestro.ast.node.PType type, LexIdentifier name) -
newAUIntLiteralExp
-
newAArrayInitializer
public static org.intocps.maestro.ast.node.AArrayInitializer newAArrayInitializer(List<? extends org.intocps.maestro.ast.node.PExp> args) -
newABoolLiteralExp
-
newARealLiteralExp
-
newAFloatLiteralExp
-
newAIntLiteralExp
-
newAStringLiteralExp
-
newAAssignmentStm
public static org.intocps.maestro.ast.node.AAssigmentStm newAAssignmentStm(org.intocps.maestro.ast.node.PStateDesignator target, org.intocps.maestro.ast.node.PExp exp) -
newAParExp
public static org.intocps.maestro.ast.node.PExp newAParExp(org.intocps.maestro.ast.node.PExp exp) -
newABoleanPrimitiveType
public static org.intocps.maestro.ast.node.ABooleanPrimitiveType newABoleanPrimitiveType() -
newBoleanType
public static org.intocps.maestro.ast.node.ABooleanPrimitiveType newBoleanType() -
newAVoidType
public static org.intocps.maestro.ast.node.AVoidType newAVoidType() -
newARealNumericPrimitiveType
public static org.intocps.maestro.ast.node.ARealNumericPrimitiveType newARealNumericPrimitiveType() -
newAFloatNumericPrimitiveType
public static org.intocps.maestro.ast.node.AFloatNumericPrimitiveType newAFloatNumericPrimitiveType() -
newRealType
public static org.intocps.maestro.ast.node.ARealNumericPrimitiveType newRealType() -
newAStringPrimitiveType
public static org.intocps.maestro.ast.node.AStringPrimitiveType newAStringPrimitiveType() -
newStringType
public static org.intocps.maestro.ast.node.AStringPrimitiveType newStringType() -
newAIntNumericPrimitiveType
public static org.intocps.maestro.ast.node.AIntNumericPrimitiveType newAIntNumericPrimitiveType() -
newIntType
public static org.intocps.maestro.ast.node.AIntNumericPrimitiveType newIntType() -
newUIntType
public static org.intocps.maestro.ast.node.AUIntNumericPrimitiveType newUIntType() -
newPar
public static org.intocps.maestro.ast.node.AParExp newPar(org.intocps.maestro.ast.node.PExp exp) -
newOr
public static AOrBinaryExp newOr(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newAnd
public static AAndBinaryExp newAnd(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newAArrayType
public static org.intocps.maestro.ast.node.AArrayType newAArrayType(org.intocps.maestro.ast.node.PType arrayType) -
newAArayStateDesignator
public static org.intocps.maestro.ast.node.AArrayStateDesignator newAArayStateDesignator(org.intocps.maestro.ast.node.PStateDesignator target, org.intocps.maestro.ast.node.PExp exp) -
newAIdentifierStateDesignator
public static org.intocps.maestro.ast.node.AIdentifierStateDesignator newAIdentifierStateDesignator(String name) -
newAIdentifierStateDesignator
public static org.intocps.maestro.ast.node.AIdentifierStateDesignator newAIdentifierStateDesignator(LexIdentifier name) -
newAArrayIndexExp
public static org.intocps.maestro.ast.node.AArrayIndexExp newAArrayIndexExp(org.intocps.maestro.ast.node.PExp array, List<? extends org.intocps.maestro.ast.node.PExp> values) -
newAIdentifier
-
newDivideExp
public static ADivideBinaryExp newDivideExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newMultiplyExp
public static AMultiplyBinaryExp newMultiplyExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newMinusExp
public static AMinusBinaryExp newMinusExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newPlusExp
public static APlusBinaryExp newPlusExp(org.intocps.maestro.ast.node.PExp left, org.intocps.maestro.ast.node.PExp right) -
newError
public static org.intocps.maestro.ast.node.AErrorStm newError(org.intocps.maestro.ast.node.PExp exp) -
newBreak
public static org.intocps.maestro.ast.node.ABreakStm newBreak() -
newAUnknownType
public static org.intocps.maestro.ast.node.AUnknownType newAUnknownType() -
newNullType
public static org.intocps.maestro.ast.node.ANullType newNullType()
-