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.relocatepublic Descriptor(java.lang.String str)
throws ParseException
str - the params of M in "(typeof param0, typeof param1, ...) ret type" formatParseExceptionpublic void relocate(java.util.Hashtable subs)
subs - A table of string substitution pairs.ClassRep.relocatepublic Descriptor relocate_new(java.util.Hashtable subs)
subs - a table of string substitution pairs.and Snippit.relocatepublic int count()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - a method descriptor (return false otherwise)public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String declaration()