org.osjava.jardiff
Class MethodInfo

java.lang.Object
  extended byorg.osjava.jardiff.AbstractInfo
      extended byorg.osjava.jardiff.MethodInfo

public final class MethodInfo
extends AbstractInfo

A class to hold information about a method.

Author:
Antony Riley

Field Summary
 
Fields inherited from class org.osjava.jardiff.AbstractInfo
ACCESS_PACKAGE, ACCESS_PRIVATE, ACCESS_PROTECTED, ACCESS_PUBLIC
 
Constructor Summary
MethodInfo(int access, String name, String desc, String signature, String[] exceptions)
          Create a new MethodInfo with the specified parameters.
 
Method Summary
 String getDesc()
          Get the descriptor for the method.
 String[] getExceptions()
          Get the array of exceptions which can be thrown by the method.
 String getSignature()
          Get the signature for the method.
 
Methods inherited from class org.osjava.jardiff.AbstractInfo
getAccess, getAccessType, getName, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarargs, isVolatile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInfo

public MethodInfo(int access,
                  String name,
                  String desc,
                  String signature,
                  String[] exceptions)
Create a new MethodInfo with the specified parameters.

Parameters:
access - The access flags for the method.
name - The name of the method.
signature - The signature of the method.
exceptions - The exceptions thrown by the method.
Method Detail

getDesc

public final String getDesc()
Get the descriptor for the method.

Returns:
the descriptor

getSignature

public final String getSignature()
Get the signature for the method.

Returns:
the signature

getExceptions

public final String[] getExceptions()
Get the array of exceptions which can be thrown by the method.

Returns:
the exceptions as a String[] of internal names.


Copyright © 2005-2006 OSJava. All Rights Reserved.