jef.disconnection
Interface DisconnectedMethod

All Superinterfaces:
DisconnectedField, DisconnectedStructure
All Known Implementing Classes:
DefaultDisconnectedMethod

public interface DisconnectedMethod
extends DisconnectedField

This interface represents the set of information needed to fully describe a Java class' method. A DisconnectedMethod is used to "extract" a method definition from a Java class in order to inject it into another Java class, modifying the receiving class behaviour.

Author:
Francesco Russo frusso@dev.java.net

Method Summary
 void addMethod(MethodInfoStructure mi)
          Adds one more MethodInfoStructure to the current DisconnectedMethod instance.
 MethodsTable getMethods()
          Gets the MethodsTable instance containing all the extracted methods.
 void setMethods(MethodsTable mt)
          Sets the MethodsTable instance containing all the extracted methods.
 
Methods inherited from interface jef.disconnection.DisconnectedField
addAttribute, addField, addInnerClass, getAttributes, getConstantPoolTable, getFields, getInnerClasses, getSrcClassFqn, setConstantPoolTable, setFields, setSrcClassFqn
 

Method Detail

setMethods

void setMethods(MethodsTable mt)
Sets the MethodsTable instance containing all the extracted methods.

Parameters:
mt - The MethodsTable instance

getMethods

MethodsTable getMethods()
Gets the MethodsTable instance containing all the extracted methods.

Returns:
MethodsTable The MethodsTable instance

addMethod

void addMethod(MethodInfoStructure mi)
               throws InstantiatorException
Adds one more MethodInfoStructure to the current DisconnectedMethod instance.

Parameters:
mi - The MethodInfoStructure to be added
Throws:
InstantiatorException