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

Mirror API
DRAFT ea-b118

com.sun.mirror.util
Interface Declarations


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

@Deprecated
public interface Declarations

Utility methods for operating on declarations.

Since:
1.5

Method Summary
Modifier and Type Method and Description
 boolean hides(MemberDeclaration sub, MemberDeclaration sup)
          Deprecated. Tests whether one type, method, or field declaration hides another.
 boolean overrides(MethodDeclaration sub, MethodDeclaration sup)
          Deprecated. Tests whether one method overrides another.
 

Method Detail

hides

boolean hides(MemberDeclaration sub,
              MemberDeclaration sup)
Deprecated. 
Tests whether one type, method, or field declaration hides another.

Parameters:
sub - the first member
sup - the second member
Returns:
true if and only if the first member hides the second

overrides

boolean overrides(MethodDeclaration sub,
                  MethodDeclaration sup)
Deprecated. 
Tests whether one method overrides another. When a non-abstract method overrides an abstract one, the former is also said to implement the latter.

Parameters:
sub - the first method
sup - the second method
Returns:
true if and only if the first method overrides the second

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.