EMFHelpers
-
public class
EMFHelpers
Methods
addAttribute
-
public static void
addAttribute
(BaseNode node, DeclRef attribute, Collection<Expr> arguments)
addAttribute
-
public static void
addAttribute
(BaseNode node, DeclRef attribute)
addQueueSizeAttribute
-
public static void
addQueueSizeAttribute
(ComponentDecl node, int queueSize)
addRuntimeAttribute
-
public static void
addRuntimeAttribute
(ComponentDecl node, boolean multithreaded)
createAbortDeclRef
-
public static BuiltinDeclRef
createAbortDeclRef
()
createArrayDeclRef
-
public static BuiltinDeclRef
createArrayDeclRef
()
createArrayDereferenceExpr
-
public static ArrayDereferenceExpr
createArrayDereferenceExpr
(Expr base, Expr index)
createArrayEventSource
-
public static ArrayEventSource
createArrayEventSource
(EventSource base, Pattern arrayVariable, Expr guard)
createArrayTypeRepr
-
public static TypeReferenceRepr
createArrayTypeRepr
(TypeRepr itemType, int arraySize)
createAssertDeclRef
-
public static BuiltinDeclRef
createAssertDeclRef
()
createAssignmentExpr
-
public static AssignmentExpr
createAssignmentExpr
(Expr target, Expr value)
createAttribute
-
public static Attribute
createAttribute
(DeclRef attribute, Collection<Expr> arguments)
createAttribute
-
public static Attribute
createAttribute
(DeclRef attribute)
createBaseDeclRef
-
public static BuiltinDeclRef
createBaseDeclRef
(String member)
createBecomeStmt
-
public static BecomeStmt
createBecomeStmt
(Expr returnValue)
createBinaryOperationExpr
-
public static BinaryOperationExpr
createBinaryOperationExpr
(Expr left, BinaryOperation operation, Expr right)
createBlockExpr
-
public static BlockExpr
createBlockExpr
()
createBoolDeclRef
-
public static BuiltinDeclRef
createBoolDeclRef
()
createBoolTypeRepr
-
public static TypeRepr
createBoolTypeRepr
()
createBoundDeclRef
-
public static BoundDeclRef
createBoundDeclRef
(ValueDecl decl)
createBoundedDeclRef
-
public static BuiltinDeclRef
createBoundedDeclRef
()
createBoundedIntTypeRepr
-
public static TypeReferenceRepr
createBoundedIntTypeRepr
(int lowerBound, int upperBound)
createBoundedTypeRepr
-
public static TypeReferenceRepr
createBoundedTypeRepr
(int lowerBound, int upperBound)
createBreakStmt
-
public static BreakStmt
createBreakStmt
()
createBreakStmt
-
public static BreakStmt
createBreakStmt
(LoopStmt loop)
createBuiltinDeclRef
-
public static BuiltinDeclRef
createBuiltinDeclRef
(String member, String module)
createBuiltinDeclRef
-
public static BuiltinDeclRef
createBuiltinDeclRef
(String member, String module, int index)
createCallExpr
-
public static CallExpr
createCallExpr
(Expr function, Collection<Expr> arguments)
createCharDeclRef
-
public static BuiltinDeclRef
createCharDeclRef
()
createCompoundEventHandlerClause
-
public static CompoundEventHandlerClause
createCompoundEventHandlerClause
(Expr guard, EventHandler value)
createContinueStmt
-
public static ContinueStmt
createContinueStmt
()
createContinueStmt
-
public static ContinueStmt
createContinueStmt
(LoopStmt loop)
createEnumCaseDecl
-
public static EnumCaseDecl
createEnumCaseDecl
(String name)
createEnumCaseDecl
-
public static EnumCaseDecl
createEnumCaseDecl
(String name, Expr value)
createEnumCasePattern
-
public static EnumCasePattern
createEnumCasePattern
(DeclRef enumCase, Collection<ParameterDecl> parameters)
createEnumDecl
-
public static EnumDecl
createEnumDecl
(String name, Collection<EnumCaseDecl> clauses)
createEqDeclRef
-
public static BuiltinDeclRef
createEqDeclRef
()
createEventStateDecl
-
public static EventStateDecl
createEventStateDecl
(String name)
createExecutionStateDecl
-
public static ExecutionStateDecl
createExecutionStateDecl
(String name, BlockExpr body)
createExprEventHandler
-
public static ExprEventHandler
createExprEventHandler
(Expr action)
createExternalConstantDecl
-
public static ExternalConstantDecl
createExternalConstantDecl
(String name, TypeRepr declaredType, Expr initialiser)
createFalseDeclRef
-
public static BuiltinDeclRef
createFalseDeclRef
()
createFieldDecl
-
public static FieldDecl
createFieldDecl
(String name, TypeRepr declaredType)
createFieldDecl
-
public static FieldDecl
createFieldDecl
(String name, TypeRepr declaredType, ConstantMode constantMode)
createFieldEventSource
-
public static FieldEventSource
createFieldEventSource
(EventSource base, DeclRef field)
createFunctionArgument
-
public static ParameterDecl
createFunctionArgument
(String name, TypeRepr argumentType)
createGenericRequirementRepr
-
public static GenericRequirementRepr
createGenericRequirementRepr
(DeclRef typeClass, Collection<TypeRepr> arguments)
createIfExpr
-
public static IfExpr
createIfExpr
(Expr guard, Expr thenValue, Expr elseValue)
createIntDeclRef
-
public static BuiltinDeclRef
createIntDeclRef
()
createInvariantDecl
-
public static InvariantDecl
createInvariantDecl
(Expr invariant)
createLiteralChar
-
public static LiteralChar
createLiteralChar
(char value)
createLiteralExpr
-
public static LiteralExpr
createLiteralExpr
(Literal literal)
createLiteralInt
-
public static LiteralInt
createLiteralInt
(int value)
createLiteralPattern
-
public static LiteralPattern
createLiteralPattern
(Literal value)
createLiteralString
-
public static LiteralString
createLiteralString
(String value)
createLiteralTypeRepr
-
public static LiteralTypeRepr
createLiteralTypeRepr
(Literal literal)
createMatchClause
-
public static MatchClause
createMatchClause
(Pattern pattern, Expr value)
createMatchExpr
-
public static MatchExpr
createMatchExpr
(Expr argument)
createMatchExpr
-
public static MatchExpr
createMatchExpr
(String label, Expr argument)
createMemberReferenceExpr
-
public static MemberReferenceExpr
createMemberReferenceExpr
(Expr base, DeclRef field)
createMemberReferenceExpr
-
public static MemberReferenceExpr
createMemberReferenceExpr
(Expr base, ValueDecl field)
createNilDeclRef
-
public static BuiltinDeclRef
createNilDeclRef
()
createNonDetClause
-
public static NonDetClause
createNonDetClause
(Expr value)
createNonDetClause
-
public static NonDetClause
createNonDetClause
(Expr guard, Expr value)
createOptionalExpr
-
public static OptionalExpr
createOptionalExpr
(Expr value)
createOrdDeclRef
-
public static BuiltinDeclRef
createOrdDeclRef
()
createParameterDecl
-
public static ParameterDecl
createParameterDecl
(String name, TypeRepr declaredType)
createQualifedImportDecl
-
public static ImportDecl
createQualifedImportDecl
(DeclRef module)
createQueueAttributeDeclRef
-
public static BuiltinDeclRef
createQueueAttributeDeclRef
()
createRangeDeclRef
-
public static BuiltinDeclRef
createRangeDeclRef
()
createReferenceTypeRepr
-
public static ReferenceTypeRepr
createReferenceTypeRepr
(ReferenceKind kind, TypeRepr base)
createRepresentsDeclRef
-
public static BuiltinDeclRef
createRepresentsDeclRef
()
createRequalifedImportDecl
-
public static ImportDecl
createRequalifedImportDecl
(DeclRef module, String name)
createReturnStmt
-
public static ReturnStmt
createReturnStmt
(Expr returnValue)
createRuntimeDeclRef
-
public static BuiltinDeclRef
createRuntimeDeclRef
()
createSelfDeclRef
-
public static DeclRef
createSelfDeclRef
()
createSpontaneousTransition
-
public static Transition
createSpontaneousTransition
(Expr guard, Expr action)
createStateMachineDecl
-
public static StateMachineDecl
createStateMachineDecl
(String name)
createStateMachineDecl
-
public static StateMachineDecl
createStateMachineDecl
(String name, Collection<Decl> localDecls)
createStringDeclRef
-
public static BuiltinDeclRef
createStringDeclRef
()
createTrueDeclRef
-
public static BuiltinDeclRef
createTrueDeclRef
()
createTypeReferenceRepr
-
public static TypeReferenceRepr
createTypeReferenceRepr
(DeclRef decl)
createTypeVariableTypeParamDecl
-
public static TypeVariableTypeParamDecl
createTypeVariableTypeParamDecl
(String name)
createUnboundDeclRef
-
public static UnboundDeclRef
createUnboundDeclRef
(String name)
createUndefinedExpr
-
public static UndefinedExpr
createUndefinedExpr
()
createUndefinedExpr
-
public static UndefinedExpr
createUndefinedExpr
(TypeRepr type)
createUnqualifedImportDecl
-
public static ImportDecl
createUnqualifedImportDecl
(DeclRef module)
createUnreliableDeclRef
-
public static BuiltinDeclRef
createUnreliableDeclRef
()
createUnreliableSpontaneousTransition
-
public static Transition
createUnreliableSpontaneousTransition
(Expr guard, Expr action)
createUnusedAttributeDeclRef
-
public static BuiltinDeclRef
createUnusedAttributeDeclRef
()
createValueTypeParamDecl
-
public static ValueTypeParamDecl
createValueTypeParamDecl
(String name, TypeRepr valueType)
createVariableDecl
-
public static VariableDecl
createVariableDecl
(String name, ConstantMode constantMode, TypeRepr declaredType)
createVariableDecl
-
public static VariableDecl
createVariableDecl
(String name, ConstantMode constantMode, TypeRepr declaredType, Expr initialiser)
createVariableExpr
-
public static VariableExpr
createVariableExpr
(DeclRef variable)
createVariablePattern
-
public static VariablePattern
createVariablePattern
(DeclRef variable)
createVerifyDeclRef
-
public static BuiltinDeclRef
createVerifyDeclRef
()
createWhileStmt
-
public static WhileStmt
createWhileStmt
(Expr predicate, Collection<Stmt> bodyContents)
createWildcardFunctionArgument
-
public static ParameterDecl
createWildcardFunctionArgument
(TypeRepr argumentType)
createWildcardPattern
-
public static WildcardPattern
createWildcardPattern
()
createnilDeclRef
-
public static BuiltinDeclRef
createnilDeclRef
()