public class MethodSet extends Object
| Constructor and Description |
|---|
MethodSet()
Creates a brand new MethodSet
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(MemberDefinition method)
Adds `method' to the MethodSet.
|
void |
freeze()
After freeze() is called, the MethodSet becomes (mostly)
immutable.
|
boolean |
isFrozen()
Tells whether freeze() has been called on this MethodSet.
|
Iterator<MemberDefinition> |
iterator()
Returns an Iterator of all methods in the MethodSet
|
Iterator<MemberDefinition> |
lookupName(Identifier name)
Returns an Iterator of all methods contained in the
MethodSet which have a given name.
|
MemberDefinition |
lookupSig(Identifier name,
Type type)
If the MethodSet contains a method with the same signature
then lookup() returns it.
|
void |
replace(MemberDefinition method)
Adds `method' to the MethodSet, replacing any previous definition
with the same signature.
|
int |
size()
Returns the number of distinct methods stored in the MethodSet.
|
String |
toString()
Returns a (big) string representation of this MethodSet
|
public int size()
public void add(MemberDefinition method)
public void replace(MemberDefinition method)
public MemberDefinition lookupSig(Identifier name, Type type)
public Iterator<MemberDefinition> lookupName(Identifier name)
public Iterator<MemberDefinition> iterator()
public void freeze()
public boolean isFrozen()
Copyright © 2020. All Rights Reserved.