AST
node type StateMachine

General Info

Production
StateMachine : ASTNode ::= Declaration*;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.StateMachine
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

Source
Declared in spec/StateMachine.ast at line 6

Member Filters

API level:

Aspect:

Constructors

Attributes

Source
Declared in spec/Exercises.jrag at line 64
Aspect
Exercises
Source
Declared in spec/Exercises.jrag at line 66
Aspect
Exercises
coll java.util.Set<java.lang.String> errors()
Source
Declared in spec/Exercises.jrag at line 83
Aspect
Exercises

Methods

public StateMachine clone()
                   throws java.lang.CloneNotSupportedException
Overrides:clone in class ASTNode<ASTNode>
Throws:
java.lang.CloneNotSupportedException
Overrides:copy in class ASTNode<ASTNode>
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
public void pp()
Source
Declared in spec/PrettyPrint.jrag at line 6
Aspect
PrettyPrint
public void printInfoAboutCycles()
Source
Declared in spec/PrintInfoAboutCycles.jrag at line 4
Aspect
PrintInfoAboutCycles
public void printReachable()
Source
Declared in spec/PrintReachable.jrag at line 4
Aspect
PrintReachable
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ASTNode<ASTNode>
protected int numChildren()
Overrides:numChildren in class ASTNode<ASTNode>
public void flushCache()
Overrides:flushCache in class ASTNode<ASTNode>
public void flushCollectionCache()
Overrides:flushCollectionCache in class ASTNode<ASTNode>
public void setDeclarationList(List<Declaration> list)
Replaces the Declaration list.
Parameters:
list - The new list node to be used as the Declaration list.
public int getNumDeclaration()
Retrieves the number of children in the Declaration list.
Returns:
Number of children in the Declaration list.
Retrieves the number of children in the Declaration list. Calling this method will not trigger rewrites.
Returns:
Number of children in the Declaration list.
Retrieves the element at index i in the Declaration list.
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the Declaration list.
public boolean hasDeclaration()
Check whether the Declaration list has any children.
Returns:
true if it has at least one child, false otherwise.
public void addDeclaration(Declaration node)
Append an element to the Declaration list.
Parameters:
node - The element to append to the Declaration list.
public void setDeclaration(Declaration node,
                           int i)
Replaces the Declaration list element at index i with the new node node.
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the Declaration list.
Returns:
The node representing the Declaration list.
Retrieves the Declaration list.

This method does not invoke AST transformations.

Returns:
The node representing the Declaration list.
Retrieves the Declaration list.
Returns:
The node representing the Declaration list.
Retrieves the Declaration list.

This method does not invoke AST transformations.

Returns:
The node representing the Declaration list.
public State Define_State_lookupForward(ASTNode caller,
                                        ASTNode child,
                                        java.lang.String label)
Overrides:Define_State_lookupForward in class ASTNode<ASTNode>
Source
Declared in spec/Exercises.jrag at line 17
public java.util.Set<Transition> Define_Set_Transition__transitionsOf(ASTNode caller,
                                                                      ASTNode child,
                                                                      State s)
Overrides:Define_Set_Transition__transitionsOf in class ASTNode<ASTNode>
Source
Declared in spec/Exercises.jrag at line 30
Overrides:Define_StateMachine_theMachine in class ASTNode<ASTNode>
Source
Declared in spec/Exercises.jrag at line 73
public State Define_State_lookup(ASTNode caller,
                                 ASTNode child,
                                 java.lang.String label)
Overrides:Define_State_lookup in class ASTNode<ASTNode>
Source
Declared in spec/NameAnalysis.jrag at line 10
Returns:
the contributor set for numberOfTransitionsColl
public java.util.Set StateMachine_errors_contributors()
Returns:
the contributor set for errors

Fields

Inherited Members