edu.wisc.cs.stego
Class ProfilePoint

java.lang.Object
  |
  +--edu.wisc.cs.stego.ProfilePoint

public class ProfilePoint
extends java.lang.Object

This class represents a single profile point in a program as recorded by the Profile class.


Constructor Summary
ProfilePoint(java.lang.String line, boolean init)
          Constructs an ProfilePoint object from a string.
 
Method Summary
 boolean equal(java.lang.Object o)
          Compares this object to another for equality.
 java.lang.String getClassName()
          Returns the name of the class containing this profile point.
 java.lang.String getMethodName()
          Returns the name of the method containing this profile point.
 int getNParameters()
          Returns the number of parameters recorded at this point.
 java.lang.Object getParameter(int i)
          Returns the value of a parameter to this profile point.
 boolean isInitializer()
          Returns true if this profile point is the initializer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilePoint

public ProfilePoint(java.lang.String line,
                    boolean init)
Constructs an ProfilePoint object from a string. The class_and_method string is exactly a line from the profile. Note that parameters are currently ignored.
Parameters:
line - a string containing the fully qualified class and method as well as any parameter for this point.
init - true if this is the first profile point, false, otherwise.
Method Detail

getClassName

public java.lang.String getClassName()
Returns the name of the class containing this profile point.
Returns:
the name of the class containing this profile point.

getMethodName

public java.lang.String getMethodName()
Returns the name of the method containing this profile point.
Returns:
the name of the method containing this profile point.

getNParameters

public int getNParameters()
Returns the number of parameters recorded at this point.
Returns:
the number of parameters recorded at this point.

getParameter

public java.lang.Object getParameter(int i)
Returns the value of a parameter to this profile point.
Returns:
the value of a parameter to this profile point.

isInitializer

public boolean isInitializer()
Returns true if this profile point is the initializer.
Returns:
true if this profile point is the initializer.

equal

public boolean equal(java.lang.Object o)
Compares this object to another for equality. Two ProfilePoints are the same if and only if their method and classnames are the same.
Returns:
true of the object is equal, false, otherwise.