net.sf.jode.type
Class MethodType
java.lang.Object
net.sf.jode.type.Type
net.sf.jode.type.MethodType
- public class MethodType
- extends Type
This type represents an method type.
- Author:
- Jochen Hoenicke
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 |
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 |
MethodType
public MethodType(ClassPath cp,
java.lang.String signature)
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.
Copyright © 1998-2004 by Jochen Hoenicke.