Class MableBuilder

java.lang.Object
org.intocps.maestro.ast.MableBuilder

public class MableBuilder extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.intocps.maestro.ast.node.PExp
    arrayGet(String name, int index)
     
    static org.intocps.maestro.ast.node.PExp
    arrayGet(String name, org.intocps.maestro.ast.node.PExp index)
     
    static org.intocps.maestro.ast.node.PExp
    arrayGet(LexIdentifier name, int index)
     
    static org.intocps.maestro.ast.node.PExp
    arrayGet(LexIdentifier name, org.intocps.maestro.ast.node.AIntLiteralExp index)
     
    static org.intocps.maestro.ast.node.PExp
    arrayGet(org.intocps.maestro.ast.node.PExp name, org.intocps.maestro.ast.node.PExp index)
     
    static org.intocps.maestro.ast.node.PStm
    arraySet(String name, Integer index, org.intocps.maestro.ast.node.PExp value)
     
    static org.intocps.maestro.ast.node.PExp
    call(String method)
     
    static org.intocps.maestro.ast.node.PExp
    call(String object, String method)
     
    static org.intocps.maestro.ast.node.PExp
    call(String object, String method, List<org.intocps.maestro.ast.node.PExp> args)
     
    static org.intocps.maestro.ast.node.PExp
    call(String object, String method, org.intocps.maestro.ast.node.PExp... args)
     
    static org.intocps.maestro.ast.node.PExp
    call(String method, List<org.intocps.maestro.ast.node.PExp> args)
     
    static org.intocps.maestro.ast.node.PExp
    call(String method, org.intocps.maestro.ast.node.PExp... args)
     
    static org.intocps.maestro.ast.node.PExp
    call(org.intocps.maestro.ast.node.PExp object, String method, List<org.intocps.maestro.ast.node.PExp> args)
     
    static org.intocps.maestro.ast.node.PExp
    call(org.intocps.maestro.ast.node.PExp object, String method, org.intocps.maestro.ast.node.PExp... args)
     
    static org.intocps.maestro.ast.node.PExp
    nestedOr(List<org.intocps.maestro.ast.node.PExp> expressionsToAdd)
    Creates a possibly nested or expression.
    static void
    nestedOrRecursive(List<org.intocps.maestro.ast.node.PExp> expressionsToAdd, org.intocps.maestro.ast.node.SBinaryExp currentExpression)
    This method creates a possibly nested or expression.
    static org.intocps.maestro.ast.node.PStm
    newVariable(boolean external, String name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PExp value)
     
    static org.intocps.maestro.ast.node.PStm
    newVariable(String name, org.intocps.maestro.ast.node.PType type, int size)
     
    static org.intocps.maestro.ast.node.PStm
    newVariable(String name, org.intocps.maestro.ast.node.PType type, int... size)
     
    static org.intocps.maestro.ast.node.PStm
    newVariable(String name, org.intocps.maestro.ast.node.PType type, List<org.intocps.maestro.ast.node.PExp> values)
     
    static org.intocps.maestro.ast.node.PStm
    newVariable(String name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PExp value)
     
    static org.intocps.maestro.ast.node.PStm
    newVariable(LexIdentifier name, org.intocps.maestro.ast.node.PType type, List<org.intocps.maestro.ast.node.PExp> values)
     
    static org.intocps.maestro.ast.node.PStm
    newVariable(LexIdentifier name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PExp value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MableBuilder

      public MableBuilder()
  • Method Details

    • newVariable

      public static org.intocps.maestro.ast.node.PStm newVariable(LexIdentifier name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PExp value)
    • newVariable

      public static org.intocps.maestro.ast.node.PStm newVariable(String name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PExp value)
    • newVariable

      public static org.intocps.maestro.ast.node.PStm newVariable(boolean external, String name, org.intocps.maestro.ast.node.PType type, org.intocps.maestro.ast.node.PExp value)
    • newVariable

      public static org.intocps.maestro.ast.node.PStm newVariable(LexIdentifier name, org.intocps.maestro.ast.node.PType type, List<org.intocps.maestro.ast.node.PExp> values)
    • newVariable

      public static org.intocps.maestro.ast.node.PStm newVariable(String name, org.intocps.maestro.ast.node.PType type, List<org.intocps.maestro.ast.node.PExp> values)
    • newVariable

      public static org.intocps.maestro.ast.node.PStm newVariable(String name, org.intocps.maestro.ast.node.PType type, int size)
    • newVariable

      public static org.intocps.maestro.ast.node.PStm newVariable(String name, org.intocps.maestro.ast.node.PType type, int... size)
    • call

      public static org.intocps.maestro.ast.node.PExp call(String object, String method, org.intocps.maestro.ast.node.PExp... args)
    • nestedOr

      public static org.intocps.maestro.ast.node.PExp nestedOr(List<org.intocps.maestro.ast.node.PExp> expressionsToAdd)
      Creates a possibly nested or expression.
      Parameters:
      expressionsToAdd - THIS METHOD EMPTIES COLLECTION. List of expressions to "or" together
      Returns:
      Top level or expression.
    • nestedOrRecursive

      public static void nestedOrRecursive(List<org.intocps.maestro.ast.node.PExp> expressionsToAdd, org.intocps.maestro.ast.node.SBinaryExp currentExpression)
      This method creates a possibly nested or expression. I.e.: x == 1 || (x == 2 || (x == 3))
      Parameters:
      expressionsToAdd - THIS METHOD EMPTIES THE COLLECTION! Expressions to add. In example above: x == 1, x==2 and x == 3. This method empties the collection!
      currentExpression - Starting expression.
    • call

      public static org.intocps.maestro.ast.node.PExp call(String object, String method, List<org.intocps.maestro.ast.node.PExp> args)
    • call

      public static org.intocps.maestro.ast.node.PExp call(org.intocps.maestro.ast.node.PExp object, String method, List<org.intocps.maestro.ast.node.PExp> args)
    • call

      public static org.intocps.maestro.ast.node.PExp call(org.intocps.maestro.ast.node.PExp object, String method, org.intocps.maestro.ast.node.PExp... args)
    • call

      public static org.intocps.maestro.ast.node.PExp call(String object, String method)
    • call

      public static org.intocps.maestro.ast.node.PExp call(String method, org.intocps.maestro.ast.node.PExp... args)
    • call

      public static org.intocps.maestro.ast.node.PExp call(String method, List<org.intocps.maestro.ast.node.PExp> args)
    • call

      public static org.intocps.maestro.ast.node.PExp call(String method)
    • arrayGet

      public static org.intocps.maestro.ast.node.PExp arrayGet(String name, org.intocps.maestro.ast.node.PExp index)
    • arrayGet

      public static org.intocps.maestro.ast.node.PExp arrayGet(org.intocps.maestro.ast.node.PExp name, org.intocps.maestro.ast.node.PExp index)
    • arrayGet

      public static org.intocps.maestro.ast.node.PExp arrayGet(String name, int index)
    • arrayGet

      public static org.intocps.maestro.ast.node.PExp arrayGet(LexIdentifier name, org.intocps.maestro.ast.node.AIntLiteralExp index)
    • arrayGet

      public static org.intocps.maestro.ast.node.PExp arrayGet(LexIdentifier name, int index)
    • arraySet

      public static org.intocps.maestro.ast.node.PStm arraySet(String name, Integer index, org.intocps.maestro.ast.node.PExp value)