/** * Sets the element type of the array. * * @param type the new type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>the node is an array type</li> * </ul> * @exception UnsupportedOperationException if this operation is used below JLS8 * @since 3.10 */ public void setElementType(Type type) { unsupportedIn2_3_4(); if (type == null || type instanceof ArrayType) { throw new IllegalArgumentException(); } internalSetType(type, ELEMENT_TYPE_PROPERTY); }
/** * Sets the component type of this array type. The component type * may be another array type. * * @param componentType the component type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> * @exception UnsupportedOperationException if this operation is used in * an AST later than JLS4 * @deprecated In the JLS8 API, the recursive structure is not valid. */ public void setComponentType(Type componentType) { supportedOnlyIn2_3_4(); if (componentType == null) { throw new IllegalArgumentException(); } internalSetType(componentType, COMPONENT_TYPE_PROPERTY); }
/** * Sets the component type of this array type. The component type * may be another array type. * * @param componentType the component type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> * @exception UnsupportedOperationException if this operation is used in * an AST later than JLS4 * @deprecated In the JLS8 API, the recursive structure is not valid. */ public void setComponentType(Type componentType) { supportedOnlyIn2_3_4(); if (componentType == null) { throw new IllegalArgumentException(); } internalSetType(componentType, COMPONENT_TYPE_PROPERTY); }
/** * Sets the element type of the array. * * @param type the new type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>the node is an array type</li> * </ul> * @exception UnsupportedOperationException if this operation is used below JLS8 * @since 3.10 */ public void setElementType(Type type) { unsupportedIn2_3_4(); if (type == null || type instanceof ArrayType) { throw new IllegalArgumentException(); } internalSetType(type, ELEMENT_TYPE_PROPERTY); }
/** * Sets the element type of the array. * * @param type the new type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>the node is an array type</li> * </ul> * @exception UnsupportedOperationException if this operation is used below JLS8 * @since 3.10 */ public void setElementType(Type type) { unsupportedIn2_3_4(); if (type == null || type instanceof ArrayType) { throw new IllegalArgumentException(); } internalSetType(type, ELEMENT_TYPE_PROPERTY); }
/** * Sets the element type of the array. * * @param type the new type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>the node is an array type</li> * </ul> * @exception UnsupportedOperationException if this operation is used below JLS8 * @since 3.10 */ public void setElementType(Type type) { unsupportedIn2_3_4(); if (type == null || type instanceof ArrayType) { throw new IllegalArgumentException(); } internalSetType(type, ELEMENT_TYPE_PROPERTY); }
/** * Sets the component type of this array type. The component type * may be another array type. * * @param componentType the component type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> * @exception UnsupportedOperationException if this operation is used in * an AST later than JLS4 * @deprecated In the JLS8 API, the recursive structure is not valid. */ public void setComponentType(Type componentType) { supportedOnlyIn2_3_4(); if (componentType == null) { throw new IllegalArgumentException(); } internalSetType(componentType, COMPONENT_TYPE_PROPERTY); }
/** * Sets the element type of the array. * * @param type the new type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>the node is an array type</li> * </ul> * @exception UnsupportedOperationException if this operation is used below JLS8 * @since 3.10 */ public void setElementType(Type type) { unsupportedIn2_3_4(); if (type == null || type instanceof ArrayType) { throw new IllegalArgumentException(); } internalSetType(type, ELEMENT_TYPE_PROPERTY); }
/** * Sets the component type of this array type. The component type * may be another array type. * * @param componentType the component type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> * @exception UnsupportedOperationException if this operation is used in * an AST later than JLS4 * @deprecated In the JLS8 API, the recursive structure is not valid. */ public void setComponentType(Type componentType) { supportedOnlyIn2_3_4(); if (componentType == null) { throw new IllegalArgumentException(); } internalSetType(componentType, COMPONENT_TYPE_PROPERTY); }
/** * Sets the component type of this array type. The component type * may be another array type. * * @param componentType the component type * @exception IllegalArgumentException if: * <ul> * <li>the node belongs to a different AST</li> * <li>the node already has a parent</li> * <li>a cycle in would be created</li> * </ul> * @exception UnsupportedOperationException if this operation is used in * an AST later than JLS4 * @deprecated In the JLS8 API, the recursive structure is not valid. */ public void setComponentType(Type componentType) { supportedOnlyIn2_3_4(); if (componentType == null) { throw new IllegalArgumentException(); } internalSetType(componentType, COMPONENT_TYPE_PROPERTY); }