ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



src/inspectorj/agent/agentutils.cpp File Reference


Detailed Description

Date:
Mar 1 2007

Author:
James May

Definition in file agentutils.cpp.

#include "agentutils.h"

Include dependency graph for agentutils.cpp:

Go to the source code of this file.

Functions

static QString SINGLE_STAR ("*")
static QString DOUBLE_STAR ("**")
static QString DOLLAR_SIGN ("$")
static QString DOT (".")
static QString JNI_PACKAGE_SEPARATOR ("/")
static QString WILDCARD ("[^/]*")
static QString GREEDY_WILDCARD (".*")
static QString GREEDY_WILDCARD_TEMP ("GREEDY_WILDCARD_TEMP")
void createAgentClassFilter (QRegExp &regexp, QString filterString)
 Create a Regular Expression class filter based on the filter string.
char * getToken (char *str, char *seps, char *buf, int max)
 Return a token from a char*.
bool coveredByList (char *cname, char *mname, QList< QRegExp > *classFilters)
bool interested (char *cname, char *mname, QList< QRegExp > *classFilters)


Function Documentation

void createAgentClassFilter ( QRegExp &  regexp,
QString  filterString 
)

Create a Regular Expression class filter based on the filter string.

A filter string has the form: 'java.io.*' or 'org.apache.*.*.*Request*'. A '*' matches any character except '.' therefore '*' will NOT match multiple packages. For example java.awt.* will match java.awt.AWTEvent but will not match java.awt.event.ActionEvent.

To match across multiple package names, use the greedy double star wildcard '**': java.awt.** will match both java.awt.AWTEvent and java.awt.event.ActionEvent.

Parameters:
regexp A QRegExp reference to hold the class filter.
filterString A filter string used to construct a RegExp filter.

Definition at line 51 of file agentutils.cpp.

Referenced by parseOptions().

char* getToken ( char *  str,
char *  seps,
char *  buf,
int  max 
)

Return a token from a char*.

Parameters:
str String to scan
seps Separation characters
buf Place to put results
max Size of buf
Returns:
NULL if no token available or can't do the scan.

Definition at line 69 of file agentutils.cpp.

Referenced by parseOptions().


Generated on Sun Aug 19 17:07:56 2007 for inspectorJ by  doxygen 1.5.1