Spec-Zone .ru
спецификации, руководства, описания, API

Mirror API
DRAFT ea-b118

com.sun.mirror.type
Interface TypeMirror

All Known Subinterfaces:
AnnotationType, ArrayType, ClassType, DeclaredType, EnumType, InterfaceType, PrimitiveType, ReferenceType, TypeVariable, VoidType, WildcardType

Deprecated. All components of this API have been superseded by the standardized annotation processing API. The replacement for the functionality of this interface is TypeMirror.

@Deprecated
public interface TypeMirror

Represents a type in the Java programming language. Types include primitive types, class and interface types, array types, and type variables. Wildcard type arguments, and the pseudo-type representing the type of void, are represented by type mirrors as well.

Types may be compared using the utility methods in Types. There is no guarantee that any particular type will always be represented by the same object.

Since:
1.5
See Also:
Declaration, Types

Method Summary
Modifier and Type Method and Description
 void accept(TypeVisitor v)
          Deprecated. Applies a visitor to this type.
 boolean equals(Object obj)
          Deprecated. Tests whether two types represent the same type.
 String toString()
          Deprecated. Returns a string representation of this type.
 

Method Detail

toString

String toString()
Deprecated. 
Returns a string representation of this type. Any names embedded in the expression are qualified.

Overrides:
toString in class Object
Returns:
a string representation of this type

equals

boolean equals(Object obj)
Deprecated. 
Tests whether two types represent the same type.

Overrides:
equals in class Object
Parameters:
obj - the object to be compared with this type
Returns:
true if the specified object represents the same type as this.

accept

void accept(TypeVisitor v)
Deprecated. 
Applies a visitor to this type.

Parameters:
v - the visitor operating on this type

Mirror API
DRAFT ea-b118

Copyright © 2004, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.