/** * Initializes the expression * * @param tp the type prefix * @param td the type descriptor. The element type of the enclosed initializer will be * automatically and recursively set. * @exception IllegalArgumentException if tp is null or td is null */ public ArrayAllocation(TypeName tp, TypeDescriptor td, SourceInfo si) { super(si); if (tp == null) throw new IllegalArgumentException("tp == null"); if (td == null) throw new IllegalArgumentException("td == null"); elementType = tp; typeDescriptor = td; td.initialize(tp); }