Jode 1.90-CVS
Build Aug 6, 2004

net.sf.jode.type
Class MethodType

java.lang.Object
  extended bynet.sf.jode.type.Type
      extended bynet.sf.jode.type.MethodType

public class MethodType
extends Type

This type represents an method type.

Author:
Jochen Hoenicke

Field Summary
 
Fields inherited from class net.sf.jode.type.Type
EMPTY_IFACES, tBoolByte, tBoolean, tBoolInt, tBoolUInt, tByte, TC_ARRAY, TC_BOOLEAN, TC_BYTE, TC_CHAR, TC_CLASS, TC_CLASSIFACE, TC_DOUBLE, TC_ERROR, TC_FLOAT, TC_INT, TC_INTEGER, TC_LONG, TC_METHOD, TC_NULL, TC_RANGE, TC_SHORT, TC_SYSCLASS, TC_UNKNOWN, TC_VOID, tChar, tCloneable, tComparable, tDouble, tError, tFloat, tInt, tJavaLangClass, tLong, tNull, tObject, tSerializable, tShort, tString, tStringBuffer, tStringBuilder, tUInt, tUnknown, tUObject, tVoid
 
Constructor Summary
MethodType(ClassPath cp, java.lang.String signature)
           
 
Method Summary
 ClassPath getClassPath()
           
 java.lang.Class[] getParameterClasses()
           
 Type[] getParameterTypes()
           
 java.lang.Class getReturnClass()
           
 Type getReturnType()
           
 java.lang.String getTypeSignature()
          Returns the type signature of this type.
 int stackSize()
          Returns the number of stack/local entries an object of this type occupies.
 java.lang.String toString()
          Returns a string representation describing this type set.
 
Methods inherited from class net.sf.jode.type.Type
getCanonic, getCastHelper, getDefaultName, getDefaultValue, getHint, getSubType, getSuperType, getTypeClass, getTypeCode, intersection, isClassType, isOfType, isSubTypeOf, isValidType, maybeSubTypeOf, tArray, tClass, tClass, tMethod, tRange, tSubType, tSuperType, tSystemClass, tType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodType

public MethodType(ClassPath cp,
                  java.lang.String signature)
Method Detail

stackSize

public final int stackSize()
Description copied from class: Type
Returns the number of stack/local entries an object of this type occupies.

Overrides:
stackSize in class Type
Returns:
0 for tVoid, 2 for tDouble and tLong and 1 for every other type.

getClassPath

public ClassPath getClassPath()

getParameterTypes

public Type[] getParameterTypes()

getParameterClasses

public java.lang.Class[] getParameterClasses()
                                      throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

getReturnType

public Type getReturnType()

getReturnClass

public java.lang.Class getReturnClass()
                               throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

getTypeSignature

public java.lang.String getTypeSignature()
Description copied from class: Type
Returns the type signature of this type. You should only call this on singleton types.

Overrides:
getTypeSignature in class Type
Returns:
the type (or method) signature of this type.

toString

public java.lang.String toString()
Description copied from class: Type
Returns a string representation describing this type set.

Overrides:
toString in class Type
Returns:
a string representation describing this type set.

Jode 1.90-CVS
Build Aug 6, 2004

Copyright © 1998-2004 by Jochen Hoenicke.