org.jnetpcap.packet.structure
Class AnnotatedScannerMethod

java.lang.Object
  extended by org.jnetpcap.packet.structure.AnnotatedMethod
      extended by org.jnetpcap.packet.structure.AnnotatedScannerMethod

public class AnnotatedScannerMethod
extends AnnotatedMethod

The Class AnnotatedScannerMethod.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Field Summary
 
Fields inherited from class org.jnetpcap.packet.structure.AnnotatedMethod
declaringClass, isMapped, method, object
 
Constructor Summary
AnnotatedScannerMethod(java.lang.reflect.Method method, java.lang.Class<? extends JHeader> c, java.lang.Object container)
          Instantiates a new annotated scanner method.
 
Method Summary
 int getId()
          Gets the id.
static AnnotatedScannerMethod[] inspectClass(java.lang.Class<? extends JHeader> c)
          Inspect class.
static AnnotatedScannerMethod[] inspectJHeaderClass(java.lang.Class<? extends JHeader> c)
          Inspect j header class.
static AnnotatedScannerMethod[] inspectObject(java.lang.Object container)
          Inspect object.
 void scan(JScan scan)
          Scan.
protected  void validateSignature(java.lang.reflect.Method method)
          Validate signature.
 
Methods inherited from class org.jnetpcap.packet.structure.AnnotatedMethod
getMethod, getMethods, setIsMapped, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotatedScannerMethod

public AnnotatedScannerMethod(java.lang.reflect.Method method,
                              java.lang.Class<? extends JHeader> c,
                              java.lang.Object container)
Instantiates a new annotated scanner method.

Parameters:
method - the method
c - the c
container - the container
Method Detail

inspectJHeaderClass

public static AnnotatedScannerMethod[] inspectJHeaderClass(java.lang.Class<? extends JHeader> c)
Inspect j header class.

Parameters:
c - the c
Returns:
the annotated scanner method[]

inspectClass

public static AnnotatedScannerMethod[] inspectClass(java.lang.Class<? extends JHeader> c)
Inspect class.

Parameters:
c - the c
Returns:
the annotated scanner method[]

inspectObject

public static AnnotatedScannerMethod[] inspectObject(java.lang.Object container)
Inspect object.

Parameters:
container - the container
Returns:
the annotated scanner method[]

scan

public void scan(JScan scan)
Scan.

Parameters:
scan - the scan

validateSignature

protected void validateSignature(java.lang.reflect.Method method)
Validate signature.

Specified by:
validateSignature in class AnnotatedMethod
Parameters:
method - the method
See Also:
AnnotatedMethod.validateSignature(java.lang.reflect.Method)

getId

public int getId()
Gets the id.

Returns:
the id