Class CreatorExpression

  • All Implemented Interfaces:
    java.io.Serializable

    public class CreatorExpression
    extends Expression
    Expression representing something like "new X.Y.Z([param1[,param2[,param3]]])".
    See Also:
    Serialized Form
    • Field Detail

      • tuples

        java.util.List<java.lang.String> tuples
        Components of the class name being created e.g ["org", "datanucleus", "MyClass"].
      • arguments

        java.util.List<Expression> arguments
        Arguments for the creation call.
    • Constructor Detail

      • CreatorExpression

        public CreatorExpression​(java.util.List<java.lang.String> tuples,
                                 java.util.List<Expression> args)
    • Method Detail

      • getId

        public java.lang.String getId()
        Accessor for the class name of the object being created.
        Returns:
        Name of the class
      • getArguments

        public java.util.List<Expression> getArguments()
        Accessor for the arguments to use in the creation call.
        Returns:
        Argument list
      • getTuples

        public java.util.List getTuples()
      • bind

        public Symbol bind​(SymbolTable symtbl)
        Method to bind the expression to the symbol table as appropriate.
        Specified by:
        bind in class Expression
        Parameters:
        symtbl - Symbol table
        Returns:
        The symbol for this expression
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object