Class ConstructorArray


public final class ConstructorArray extends ConstructorCall
Represents the construction of an array type, such as "float[5](x, y, z, w, 1)".
  • Method Details

    • convert

      @Nullable public static Expression convert(@Nonnull Context context, int position, @Nonnull Type type, @Nonnull List<Expression> arguments)
      Create array-constructor expressions.

      Perform explicit check and report errors via ErrorHandler; returns null on error.

    • make

      @Nonnull public static Expression make(int position, @Nonnull Type type, @Nonnull Expression[] arguments)
      Create array-constructor expressions.

      No explicit check, assuming that the input array is immutable.

    • getKind

      public Node.ExpressionKind getKind()
      Specified by:
      getKind in class Expression
      See Also:
    • clone

      @Nonnull public Expression clone(int position)
      Specified by:
      clone in class Expression