Class MableBuilder


  • public class MableBuilder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MableBuilder()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.intocps.maestro.ast.node.PExp arrayGet​(java.lang.String name, int index)  
      static org.intocps.maestro.ast.node.PExp arrayGet​(java.lang.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​(java.lang.String name, java.lang.Integer index, org.intocps.maestro.ast.node.PExp value)  
      static org.intocps.maestro.ast.node.PExp call​(java.lang.String method)  
      static org.intocps.maestro.ast.node.PExp call​(java.lang.String object, java.lang.String method)  
      static org.intocps.maestro.ast.node.PExp call​(java.lang.String object, java.lang.String method, java.util.List<org.intocps.maestro.ast.node.PExp> args)  
      static org.intocps.maestro.ast.node.PExp call​(java.lang.String object, java.lang.String method, org.intocps.maestro.ast.node.PExp... args)  
      static org.intocps.maestro.ast.node.PExp call​(java.lang.String method, java.util.List<org.intocps.maestro.ast.node.PExp> args)  
      static org.intocps.maestro.ast.node.PExp call​(java.lang.String method, org.intocps.maestro.ast.node.PExp... args)  
      static org.intocps.maestro.ast.node.PExp call​(org.intocps.maestro.ast.node.PExp object, java.lang.String method, java.util.List<org.intocps.maestro.ast.node.PExp> args)  
      static org.intocps.maestro.ast.node.PExp call​(org.intocps.maestro.ast.node.PExp object, java.lang.String method, org.intocps.maestro.ast.node.PExp... args)  
      static org.intocps.maestro.ast.node.PExp nestedOr​(java.util.List<org.intocps.maestro.ast.node.PExp> expressionsToAdd)
      Creates a possibly nested or expression.
      static void nestedOrRecursive​(java.util.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​(java.lang.String name, org.intocps.maestro.ast.node.PType type, int size)  
      static org.intocps.maestro.ast.node.PStm newVariable​(java.lang.String name, org.intocps.maestro.ast.node.PType type, java.util.List<org.intocps.maestro.ast.node.PExp> values)  
      static org.intocps.maestro.ast.node.PStm newVariable​(java.lang.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, java.util.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 Detail

      • MableBuilder

        public MableBuilder()
    • Method Detail

      • 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​(java.lang.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,
                                                                    java.util.List<org.intocps.maestro.ast.node.PExp> values)
      • newVariable

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

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

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

        public static org.intocps.maestro.ast.node.PExp nestedOr​(java.util.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​(java.util.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​(java.lang.String object,
                                                             java.lang.String method,
                                                             java.util.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,
                                                             java.lang.String method,
                                                             java.util.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,
                                                             java.lang.String method,
                                                             org.intocps.maestro.ast.node.PExp... args)
      • call

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

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

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

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

        public static org.intocps.maestro.ast.node.PExp arrayGet​(java.lang.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​(java.lang.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​(java.lang.String name,
                                                                 java.lang.Integer index,
                                                                 org.intocps.maestro.ast.node.PExp value)