Package com.sun.mirror.util
Interface Declarations
public interface Declarations
Utility methods for operating on declarations.
- Since:
- 1.5
- Version:
- 1.1 04/01/26
- Author:
- Joseph D. Darcy, Scott Seligman
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhides(MemberDeclaration sub, MemberDeclaration sup) Tests whether one type, method, or field declaration hides another.booleanoverrides(MethodDeclaration sub, MethodDeclaration sup) Tests whether one method overrides another.
-
Method Details
-
hides
Tests whether one type, method, or field declaration hides another.- Parameters:
sub- the first membersup- the second member- Returns:
trueif and only if the first member hides the second
-
overrides
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 methodsup- the second method- Returns:
trueif and only if the first method overrides the second
-