|
|||||||||
| Home >> All >> org >> josql >> [ filters overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.josql.filters
Class StackTraceElementFilter

java.lang.Objectorg.josql.filters.AbstractJoSQLFilter
org.josql.filters.StackTraceElementFilter
- public class StackTraceElementFilter
- extends AbstractJoSQLFilter
This class allows you to filter the stack trace of a Throwable, so cutting down on the (sometimes) pointless long stack traces.
Usage:
SELECT *
FROM java.lang.StackTraceElement
WHERE className LIKE 'org.josql.%'
And then to use in code:
StackTraceElementFilter f = new StackTraceElementFilter (sql);
f.filter (new Throwable ());
Last Modified By: $Author: barrygently $
Last Modified On: $Date: 2005/01/07 17:10:40 $
Current Revision: $Revision: 1.1 $
| Field Summary |
| Fields inherited from class org.josql.filters.AbstractJoSQLFilter |
badQuery, exp, q |
| Constructor Summary | |
StackTraceElementFilter(org.josql.Query q)
Init this file filter with the query already built and parsed. |
|
StackTraceElementFilter(java.lang.String q)
Init this filter with the query. |
|
| Method Summary | |
boolean |
accept(java.lang.Object o)
|
boolean |
accept(java.lang.StackTraceElement s)
Returns true if the where clause evaluates to true for the
passed in StackTraceElement. |
void |
filter(java.lang.Throwable t)
Filter the throwable, but will also filter any causes (right up the cause chain) as well. |
void |
filter(java.lang.Throwable t,
boolean filterCause)
Filter the throwable, but will also filter any causes (right up the cause chain) as well if the filterCause boolean is set to true. |
java.lang.StackTraceElement[] |
filterStackTrace(java.lang.StackTraceElement[] s)
Filter the specified stack trace and return the new stack trace that can then be set in the throwable. |
java.lang.Class |
getExpectedClass()
Get the expected class. |
| Methods inherited from class org.josql.filters.AbstractJoSQLFilter |
getException, getQuery, setQuery, setQuery |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
StackTraceElementFilter
public StackTraceElementFilter(java.lang.String q) throws org.josql.QueryParseException
- Init this filter with the query.
StackTraceElementFilter
public StackTraceElementFilter(org.josql.Query q) throws java.lang.IllegalStateException, org.josql.QueryParseException
- Init this file filter with the query already built and parsed.
| Method Detail |
getExpectedClass
public java.lang.Class getExpectedClass()
- Get the expected class.
- Specified by:
getExpectedClassin classAbstractJoSQLFilter
accept
public boolean accept(java.lang.Object o)
- Specified by:
acceptin classAbstractJoSQLFilter
accept
public boolean accept(java.lang.StackTraceElement s) throws org.josql.QueryExecutionException
- Returns
trueif the where clause evaluates to true for the passed in StackTraceElement.
filterStackTrace
public java.lang.StackTraceElement[] filterStackTrace(java.lang.StackTraceElement[] s) throws org.josql.QueryExecutionException
- Filter the specified stack trace and return the new stack trace
that can then be set in the throwable.
filter
public void filter(java.lang.Throwable t) throws org.josql.QueryExecutionException
- Filter the throwable, but will also filter any causes (right up the cause chain)
as well. Equivalent to calling:
filter(Throwable,boolean)55 with the boolean set totrue.
filter
public void filter(java.lang.Throwable t, boolean filterCause) throws org.josql.QueryExecutionException
- Filter the throwable, but will also filter any causes (right up the cause chain)
as well if the filterCause boolean is set to
true.
|
|||||||||
| Home >> All >> org >> josql >> [ filters overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC