public final class

ArrayType

extends Type
java.lang.Object
   ↳ sun.tools.java.Type
     ↳ sun.tools.java.ArrayType

Class Overview

This class represents an Java array type. It overrides the relevant methods in class Type. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.

Summary

[Expand]
Inherited Constants
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
[Expand]
Inherited Fields
From class sun.tools.java.Type
From interface sun.tools.java.Constants
From interface sun.tools.java.RuntimeConstants
Public Methods
int getArrayDimension()
Return the array dimension.
Type getElementType()
Return the element type of an array type.
String typeString(String id, boolean abbrev, boolean ret)
Convert a Type to a string, if abbrev is true class names are not fully qualified, if ret is true the return type is included.
[Expand]
Inherited Methods
From class sun.tools.java.Type
From class java.lang.Object

Public Methods

public int getArrayDimension ()

Return the array dimension. Only works for array types.

public Type getElementType ()

Return the element type of an array type. Only works for array types.

public String typeString (String id, boolean abbrev, boolean ret)

Convert a Type to a string, if abbrev is true class names are not fully qualified, if ret is true the return type is included.