Class ArrayJType

    • Method Detail

      • elementType

        public JType elementType()
        Description copied from interface: JType
        The element type, if this an array (otherwise null).
        Specified by:
        elementType in interface JType
        Overrides:
        elementType in class AbstractJType
        Returns:
        the element type, or null if it is not an array
      • _new

        public JExpr _new​(JExpr dim)
        Description copied from interface: JType
        Construct a new instance of this array type. If the type is not an array type, an exception is thrown.
        Specified by:
        _new in interface JType
        Overrides:
        _new in class AbstractJType
        Parameters:
        dim - the array size
        Returns:
        the construction call
      • _newArray

        public JArrayExpr _newArray()
        Description copied from interface: JType
        Create a new array of this type which is inline-initialized.
        Specified by:
        _newArray in interface JType
        Overrides:
        _newArray in class AbstractJType
        Returns:
        the array, initially with zero elements
      • simpleName

        public java.lang.String simpleName()
        Description copied from interface: JType
        Get the simple name of this type.
        Specified by:
        simpleName in interface JType
        Specified by:
        simpleName in class AbstractJType
        Returns:
        the type's simple name
      • _class

        public JExpr _class()
        Description copied from interface: JType
        An expression of the form ThisType.class.
        Specified by:
        _class in interface JType
        Overrides:
        _class in class AbstractJType
        Returns:
        the expression