SandMark version 3.0


sandmark.util
Class MethodID

java.lang.Object
  |
  +--sandmark.util.MethodID
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MethodNode

public class MethodID
extends java.lang.Object
implements java.io.Serializable

This class represents a method.

All fields are public, but should be treated as read-only.

See Also:
Serialized Form

Field Summary
protected  java.lang.String className
          The name of the class the calling method was in.
static java.lang.String MISSING_String
           
protected  java.lang.String name
          The name of the method that called Annotate.mark().
protected  java.lang.String signature
          The signature of the method that called Annotate.mark().
protected  boolean Static
          Whether the method is declared static or not.
 
Constructor Summary
MethodID(de.fub.bytecode.generic.MethodGen method)
          Convienence constructor, creates a MethodID from a BCEL MethodGen object.
MethodID(java.lang.String name, java.lang.String signature, java.lang.String className)
           
MethodID(java.lang.String name, java.lang.String signature, java.lang.String className, boolean Static)
           
 
Method Summary
 boolean equals(java.lang.Object b)
          Compare for equality.
 java.lang.String getClassName()
          Return the fully qualified class name of this method.
 java.lang.String getMethodName()
          Return the name of this method.
 java.lang.String getMethodSignature()
          Return the signature of this method.
 java.lang.String getSourceName()
          Return the source name of this method.
 int hashCode()
           
 boolean isDynamic()
          Return true if this is a dynamic method.
 boolean isStatic()
          Return true if this is a static method.
 java.lang.String toString()
          Format the data in an easy to parse form.
 java.lang.String toStringDotFormat()
          Format the data in a format suitable for dot.
 java.lang.String toStringShortDotFormat()
          Format the data in a format suitable for dot.
 java.lang.String toStringShortFormat()
          Format the data in a compact form.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MISSING_String

public static final java.lang.String MISSING_String
See Also:
Constant Field Values

name

protected java.lang.String name
The name of the method that called Annotate.mark().


signature

protected java.lang.String signature
The signature of the method that called Annotate.mark().


className

protected java.lang.String className
The name of the class the calling method was in. This is the fully qualified class name, such as java.lang.Object.


Static

protected boolean Static
Whether the method is declared static or not.

Constructor Detail

MethodID

public MethodID(java.lang.String name,
                java.lang.String signature,
                java.lang.String className)

MethodID

public MethodID(java.lang.String name,
                java.lang.String signature,
                java.lang.String className,
                boolean Static)

MethodID

public MethodID(de.fub.bytecode.generic.MethodGen method)
Convienence constructor, creates a MethodID from a BCEL MethodGen object.

Parameters:
method - a MethodGen to build a MethodID from
Method Detail

equals

public boolean equals(java.lang.Object b)
Compare for equality.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Format the data in an easy to parse form.

Overrides:
toString in class java.lang.Object

toStringShortFormat

public java.lang.String toStringShortFormat()
Format the data in a compact form.


toStringDotFormat

public java.lang.String toStringDotFormat()
Format the data in a format suitable for dot.


toStringShortDotFormat

public java.lang.String toStringShortDotFormat()
Format the data in a format suitable for dot.


getMethodName

public java.lang.String getMethodName()
Return the name of this method.


getMethodSignature

public java.lang.String getMethodSignature()
Return the signature of this method.


getClassName

public java.lang.String getClassName()
Return the fully qualified class name of this method.


getSourceName

public java.lang.String getSourceName()
Return the source name of this method. On Unix, this has '/' instead of '.', and ends in ".java".


isStatic

public boolean isStatic()
Return true if this is a static method.


isDynamic

public boolean isDynamic()
Return true if this is a dynamic method.


SandMark version 3.0

Wed Jan 29 10:30:05 MST 2003