|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjbet.Descriptor
public final class Descriptor
An instance of this class describes the number and type of the parameters of the method described by the instance, and the method's return type. This file contains fields that hold the types of the parameters and the return type (if any) of the method that is described by an instance of this class. This file also includes code that: 1) initializes the fields 2) TBD $Id: Descriptor.java,v 1.9 2003/09/09 17:31:53 areisse Exp $
Field Summary | |
---|---|
Type[] |
args
|
Type |
ret
|
static Descriptor |
returnInt
|
static Descriptor |
Void
|
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Type[] args
public Type ret
public static final Descriptor Void
public static final Descriptor returnInt
Constructor Detail |
---|
public Descriptor(Type p1, Type r)
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" format
ParseException
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |