|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.packet.structure.AnnotatedMethod
org.jnetpcap.packet.structure.AnnotatedHeaderLengthMethod
public class AnnotatedHeaderLengthMethod
The Class AnnotatedHeaderLengthMethod.
| Field Summary |
|---|
| Fields inherited from class org.jnetpcap.packet.structure.AnnotatedMethod |
|---|
declaringClass, isMapped, method, object |
| Constructor Summary | |
|---|---|
AnnotatedHeaderLengthMethod(java.lang.Class<? extends JHeader> c,
int length,
HeaderLength.Type type)
Instantiates a new annotated header length method. |
|
| Method Summary | |
|---|---|
static void |
clearCache()
Clear cache. |
int |
getHeaderLength(JBuffer buffer,
int offset)
Gets the header length. |
java.lang.reflect.Method |
getMethod()
Gets the method. |
boolean |
hasStaticLength()
Checks for static length. |
static AnnotatedHeaderLengthMethod[] |
inspectClass(java.lang.Class<? extends JHeader> c)
Inspect annotations within the class for length methods. |
java.lang.String |
toString()
To string. |
protected void |
validateSignature(java.lang.reflect.Method method)
Validate signature. |
| Methods inherited from class org.jnetpcap.packet.structure.AnnotatedMethod |
|---|
getMethods, setIsMapped |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotatedHeaderLengthMethod(java.lang.Class<? extends JHeader> c,
int length,
HeaderLength.Type type)
c - the clength - the lengthtype - the type| Method Detail |
|---|
public static AnnotatedHeaderLengthMethod[] inspectClass(java.lang.Class<? extends JHeader> c)
c - class to inspect
public int getHeaderLength(JBuffer buffer,
int offset)
buffer - the bufferoffset - the offset
public final java.lang.reflect.Method getMethod()
getMethod in class AnnotatedMethodAnnotatedMethod.getMethod()public boolean hasStaticLength()
protected void validateSignature(java.lang.reflect.Method method)
validateSignature in class AnnotatedMethodmethod - the methodAnnotatedMethod.validateSignature(java.lang.reflect.Method)public static void clearCache()
public java.lang.String toString()
toString in class AnnotatedMethodAnnotatedMethod.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||