jnetpcap.filter
Interface FilterExpression


public interface FilterExpression

A filter expression interface that can access the abstract syntax tree of the parsed expression in whatever syntax it was originally supplied.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class FilterExpression.ExpressionSyntax
          Available syntaxes for filter expression.
 
Method Summary
 java.lang.String getExpression()
          Gets the actual expression in form of a string that needs to be compiled or interpreted
 FilterExpression.ExpressionSyntax getExpressionSyntax()
          Returns the syntax in a form of enum constant that the expression string is in.
 

Method Detail

getExpressionSyntax

FilterExpression.ExpressionSyntax getExpressionSyntax()
Returns the syntax in a form of enum constant that the expression string is in.

Returns:
one of the supported syntax constants

getExpression

java.lang.String getExpression()
Gets the actual expression in form of a string that needs to be compiled or interpreted

Returns:
the filter expression as a string