com.ibm.dtfj.analyzer.helpers
Class OneJavaMethod

java.lang.Object
  extended by TranslatableAnalyzer
      extended by com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean
          extended by com.ibm.dtfj.analyzer.helpers.OneJavaMethod
All Implemented Interfaces:
IAnalyzerBase, IReport, IWrapper

public class OneJavaMethod
extends SimpleAnalyzerBean

Print and extract basic information about one DTFJ JavaMethod object
Determine other attributes of the method (e.g. isNative(), etc.).


Constructor Summary
OneJavaMethod()
          Null constructor for use as JavaBean
 
Method Summary
 int getCachingPriority()
          Avoid caching OneJavaMethod objects (there are too many of them, and they are cheap to re-create)
static OneJavaMethod getInstance(IAnalyzerContext context, com.ibm.dtfj.java.JavaMethod parent)
          Find the OneJavaMethod bean instance associated with a given parent JavaMethod (create it if necessary)
 boolean isNative()
          Determine if this JavaMethod represents a native method
 boolean isPseudoFrame()
          Determine if this JavaMethod is a dummy used to represent bad "pseudo" frames on the stack
 IAnalysisReport produceReport()
          Generate a report which will be encapsulated in the IAnalysisReport object for later use by some formatter.
 void setParent(java.lang.Object parent)
          Set the parent JavaMethod underlying this analyzer bean.
 
Methods inherited from class com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean
allocateReport, allocateReportOptions, allocateSecondaryReport, getCategories, getContext, getIdentityString, getInstance, getLogger, getLongDescription, getName, getNextValidObject, getParent, getReportExtensionHelper, getResourceBundleName, getShortDescription, getVersion, isPrimaryAnalyzer, printEmbeddedReport, printEmbeddedReport, printEmbeddedReportWithOptions, printEmbeddedReportWithOptions, printReportInfoHeader, recordInternalExceptionStatic, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneJavaMethod

public OneJavaMethod()
Null constructor for use as JavaBean

Method Detail

getCachingPriority

public int getCachingPriority()
Avoid caching OneJavaMethod objects (there are too many of them, and they are cheap to re-create)

Specified by:
getCachingPriority in interface IAnalyzerBase
Overrides:
getCachingPriority in class SimpleAnalyzerBean
Returns:
the caching priority, as a number between 0 and 10
See Also:
SimpleAnalyzerBean.getCachingPriority()

getInstance

public static OneJavaMethod getInstance(IAnalyzerContext context,
                                        com.ibm.dtfj.java.JavaMethod parent)
Find the OneJavaMethod bean instance associated with a given parent JavaMethod (create it if necessary)

Parameters:
context - the AnalyzerContext in which to locate this bean instance
parent - the parent JavaMethod underlying this analyzer bean
Returns:
the desired OneJavaMethod analyzer bean

setParent

public void setParent(java.lang.Object parent)
Set the parent JavaMethod underlying this analyzer bean.

Specified by:
setParent in interface IWrapper
Overrides:
setParent in class SimpleAnalyzerBean
Parameters:
parent - The parent object to set. Must be of type JavaMethod. compatible with the type of analyzer bean that receives it
See Also:
IWrapper.setParent(java.lang.Object)

isNative

public boolean isNative()
Determine if this JavaMethod represents a native method

Returns:
true if the method is native, false otherwise

isPseudoFrame

public boolean isPseudoFrame()
Determine if this JavaMethod is a dummy used to represent bad "pseudo" frames on the stack

Returns:
true if the method represents a pseudo frame, false otherwise

produceReport

public IAnalysisReport produceReport()
Description copied from interface: IReport
Generate a report which will be encapsulated in the IAnalysisReport object for later use by some formatter.

Specified by:
produceReport in interface IReport
Overrides:
produceReport in class SimpleAnalyzerBean
Returns:
- the generic report object which will be given to some formatter
See Also:
IReport.produceReport()


© Copyright IBM Corp. 2007, 2008 All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.