edu.rice.cs.cunit.instrumentors.util
Class ScanForObjectCtorStrategy.Location

java.lang.Object
  extended by edu.rice.cs.cunit.instrumentors.util.ScanForObjectCtorStrategy.Location
All Implemented Interfaces:
IScannerStrategy.IScanResult
Enclosing class:
ScanForObjectCtorStrategy

public static class ScanForObjectCtorStrategy.Location
extends java.lang.Object
implements IScannerStrategy.IScanResult

Storage class for locations that used "new Object()".


Field Summary
 java.lang.String className
          Name of the class that contains the operation.
 java.lang.String methodDescriptor
          Descriptor of the method.
 java.lang.String methodName
          Name of the method.
 int pc
          Program counter value where it was used.
 
Constructor Summary
ScanForObjectCtorStrategy.Location(java.lang.String className, java.lang.String methodName, java.lang.String methodDescriptor, int pc)
          Constructor for a usage location.
 
Method Summary
 java.lang.String getPropertyName()
          Return the name of the property that was scanned for.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

className

public final java.lang.String className
Name of the class that contains the operation.


methodName

public final java.lang.String methodName
Name of the method.


methodDescriptor

public final java.lang.String methodDescriptor
Descriptor of the method.


pc

public final int pc
Program counter value where it was used.

Constructor Detail

ScanForObjectCtorStrategy.Location

public ScanForObjectCtorStrategy.Location(java.lang.String className,
                                          java.lang.String methodName,
                                          java.lang.String methodDescriptor,
                                          int pc)
Constructor for a usage location.

Parameters:
className - class name
methodName - method name
methodDescriptor - method descriptor
pc - program counter
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.

getPropertyName

public java.lang.String getPropertyName()
Return the name of the property that was scanned for.

Specified by:
getPropertyName in interface IScannerStrategy.IScanResult
Returns:
property name