org.jnetpcap.packet.structure
Class AnnotatedMethod

java.lang.Object
  extended by org.jnetpcap.packet.structure.AnnotatedMethod
Direct Known Subclasses:
AnnotatedBindMethod, AnnotatedFieldMethod, AnnotatedHeaderLengthMethod, AnnotatedScannerMethod

public abstract class AnnotatedMethod
extends java.lang.Object

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Field Summary
protected  java.lang.Class<?> declaringClass
           
protected  boolean isMapped
           
protected  java.lang.reflect.Method method
           
protected  java.lang.Object object
           
 
Constructor Summary
AnnotatedMethod()
           
AnnotatedMethod(java.lang.reflect.Method method)
           
AnnotatedMethod(java.lang.reflect.Method method, java.lang.Object object)
           
 
Method Summary
 java.lang.reflect.Method getMethod()
           
static java.lang.reflect.Method[] getMethods(java.lang.Class<?> c, java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
           
 void setIsMapped(boolean state)
           
 java.lang.String toString()
           
protected abstract  void validateSignature(java.lang.reflect.Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

method

protected final java.lang.reflect.Method method

isMapped

protected boolean isMapped

declaringClass

protected final java.lang.Class<?> declaringClass

object

protected final java.lang.Object object
Constructor Detail

AnnotatedMethod

public AnnotatedMethod()

AnnotatedMethod

public AnnotatedMethod(java.lang.reflect.Method method,
                       java.lang.Object object)

AnnotatedMethod

public AnnotatedMethod(java.lang.reflect.Method method)
Method Detail

setIsMapped

public void setIsMapped(boolean state)

getMethod

public java.lang.reflect.Method getMethod()

validateSignature

protected abstract void validateSignature(java.lang.reflect.Method method)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getMethods

public static java.lang.reflect.Method[] getMethods(java.lang.Class<?> c,
                                                    java.lang.Class<? extends java.lang.annotation.Annotation> annotation)