java.lang.Object | |
↳ | sun.tools.java.MethodSet |
The MethodSet structure is used to store methods for a class. It maintains the invariant that it never stores two methods with the same signature. MethodSets are able to lookup all methods with a given name and the unique method with a given signature (name, args). 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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a brand new MethodSet
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds `method' to the MethodSet.
| |||||||||||
After freeze() is called, the MethodSet becomes (mostly)
immutable.
| |||||||||||
Tells whether freeze() has been called on this MethodSet.
| |||||||||||
Returns an Iterator of all methods in the MethodSet
| |||||||||||
Returns an Iterator of all methods contained in the
MethodSet which have a given name.
| |||||||||||
If the MethodSet contains a method with the same signature
then lookup() returns it.
| |||||||||||
Adds `method' to the MethodSet, replacing any previous definition
with the same signature.
| |||||||||||
Returns the number of distinct methods stored in the MethodSet.
| |||||||||||
Returns a (big) string representation of this MethodSet
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a brand new MethodSet
Adds `method' to the MethodSet. No method of the same signature should be already defined.
After freeze() is called, the MethodSet becomes (mostly) immutable. Any calls to add() or addMeet() lead to CompilerErrors. Note that the entries themselves are still (unfortunately) open for mischievous and wanton modification.
Tells whether freeze() has been called on this MethodSet.
Returns an Iterator of all methods contained in the MethodSet which have a given name.
If the MethodSet contains a method with the same signature then lookup() returns it. Otherwise, this method returns null.
Adds `method' to the MethodSet, replacing any previous definition with the same signature.
Returns the number of distinct methods stored in the MethodSet.
Returns a (big) string representation of this MethodSet