org.jnetpcap.packet.structure
Class AnnotatedBindMethod

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

public class AnnotatedBindMethod
extends AnnotatedMethod

The Class AnnotatedBindMethod.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Field Summary
 
Fields inherited from class org.jnetpcap.packet.structure.AnnotatedMethod
declaringClass, isMapped, method, object
 
Method Summary
static void clearCache()
          Clear cache.
static AnnotatedBindMethod[] inspectClass(java.lang.Class<?> c, java.util.List<HeaderDefinitionError> errors)
          Inspect class.
static
<T extends JHeader>
AnnotatedBindMethod[]
inspectJHeaderClass(java.lang.Class<? extends JHeader> c, java.util.List<HeaderDefinitionError> errors)
          Inspect j header class.
static AnnotatedBindMethod[] inspectObject(java.lang.Object object, java.util.List<HeaderDefinitionError> errors)
          Inspect object.
 boolean isBound(JPacket packet, int offset, JHeader header)
          Checks if is bound.
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
 

Method Detail

clearCache

public static void clearCache()
Clear cache.


inspectClass

public static AnnotatedBindMethod[] inspectClass(java.lang.Class<?> c,
                                                 java.util.List<HeaderDefinitionError> errors)
Inspect class.

Parameters:
c - the c
errors - the errors
Returns:
the annotated bind method[]

inspectObject

public static AnnotatedBindMethod[] inspectObject(java.lang.Object object,
                                                  java.util.List<HeaderDefinitionError> errors)
Inspect object.

Parameters:
object - the object
errors - the errors
Returns:
the annotated bind method[]

inspectJHeaderClass

public static <T extends JHeader> AnnotatedBindMethod[] inspectJHeaderClass(java.lang.Class<? extends JHeader> c,
                                                                            java.util.List<HeaderDefinitionError> errors)
Inspect j header class.

Type Parameters:
T - the generic type
Parameters:
c - the c
errors - the errors
Returns:
the annotated bind method[]

isBound

public boolean isBound(JPacket packet,
                       int offset,
                       JHeader header)
Checks if is bound.

Parameters:
packet - the packet
offset - the offset
header - the header
Returns:
true, if is bound

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)