Class NewExpression

  • All Implemented Interfaces:
    Node

    public class NewExpression
    extends Expression
    Represents a constructor call.

    If memberDeclarations is not null (even if empty) represents an anonymous class.

    • Field Detail

      • type

        public final java.lang.reflect.Type type
      • arguments

        public final java.util.List<Expression> arguments
      • memberDeclarations

        public final java.util.List<MemberDeclaration> memberDeclarations
      • hash

        private int hash
        Cache the hash code for the expression
    • Constructor Detail

      • NewExpression

        public NewExpression​(java.lang.reflect.Type type,
                             java.util.List<Expression> arguments,
                             java.util.List<MemberDeclaration> memberDeclarations)