public final class Descriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Type[] |
args |
Type |
ret |
static Descriptor |
returnInt |
static Descriptor |
Void |
Constructor and Description |
---|
Descriptor() |
Descriptor(Descriptor d)
Construct a new Descriptor based on a template
|
Descriptor(java.lang.String str)
A constructor for Descriptor (describing a method M).
|
Descriptor(Type r) |
Descriptor(Type p1,
Type r) |
Modifier and Type | Method and Description |
---|---|
int |
count()
for invokeinterface
|
java.lang.String |
declaration() |
boolean |
equals(java.lang.Object o)
Test if the descriptor argument has the same (argument / return) types
as the (calling) descriptor.
|
int |
hashCode()
Implements hashCode for Descriptor by calculating a hash of the return
type and the parameters of the method in that order.
|
Descriptor |
relocate_new(java.util.Hashtable subs)
Relocate a copy of the current descriptor (the current descriptor
is unchanged).
|
void |
relocate(java.util.Hashtable subs)
Relocate all of the type references used by this descriptor
|
java.lang.String |
toString()
Convert the internal representation of the types associated
with the method to a string stored in Descriptor.stringCache
|
public Type[] args
public Type ret
public static final Descriptor Void
public static final Descriptor returnInt
public Descriptor(Type r)
public Descriptor()
public Descriptor(Descriptor d)
d
- the template method Descriptor.and Snippit.relocate
public Descriptor(java.lang.String str) throws ParseException
str
- the params of M in "(typeof param0, typeof param1, ...) ret type" formatParseException
public void relocate(java.util.Hashtable subs)
subs
- A table of string substitution pairs.ClassRep.relocate
public Descriptor relocate_new(java.util.Hashtable subs)
subs
- a table of string substitution pairs.and Snippit.relocate
public int count()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- a method descriptor (return false otherwise)public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String declaration()