jnetpcap.filter
Enum FilterExpression.ExpressionSyntax

java.lang.Object
  extended by java.lang.Enum<FilterExpression.ExpressionSyntax>
      extended by jnetpcap.filter.FilterExpression.ExpressionSyntax
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FilterExpression.ExpressionSyntax>
Enclosing interface:
FilterExpression

public static enum FilterExpression.ExpressionSyntax
extends java.lang.Enum<FilterExpression.ExpressionSyntax>

Available syntaxes for filter expression. The ExpressionSyntax is used to determine which type of expression compiler to invoke inorder to compile the expression down to BPF binary byte-code program.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
Etherpeek
          Etherpeek's filtering syntax
Npl
          jNetStream's NPL syntax
Pcap
          Lib PCAP filter expression syntax
Snort
          Snort's filter syntax
 
Method Summary
static FilterExpression.ExpressionSyntax valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FilterExpression.ExpressionSyntax[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Pcap

public static final FilterExpression.ExpressionSyntax Pcap
Lib PCAP filter expression syntax


Npl

public static final FilterExpression.ExpressionSyntax Npl
jNetStream's NPL syntax


Snort

public static final FilterExpression.ExpressionSyntax Snort
Snort's filter syntax


Etherpeek

public static final FilterExpression.ExpressionSyntax Etherpeek
Etherpeek's filtering syntax

Method Detail

values

public static final FilterExpression.ExpressionSyntax[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(FilterExpression.ExpressionSyntax c : FilterExpression.ExpressionSyntax.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static FilterExpression.ExpressionSyntax valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name