gov.nih.nci.caarray.services.fileparse2.arraydesign.test
Class BCELCalls

java.lang.Object
  extended by gov.nih.nci.caarray.services.fileparse2.arraydesign.test.TimeCalls
      extended by gov.nih.nci.caarray.services.fileparse2.arraydesign.test.BCELCalls

public class BCELCalls
extends TimeCalls


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nih.nci.caarray.services.fileparse2.arraydesign.test.TimeCalls
TimeCalls.DirectLoader
 
Field Summary
 
Fields inherited from class gov.nih.nci.caarray.services.fileparse2.arraydesign.test.TimeCalls
s_classLoader
 
Constructor Summary
BCELCalls()
           
 
Method Summary
protected  byte[] createAccess(java.lang.Class tclas, java.lang.reflect.Method gmeth, java.lang.reflect.Method smeth, java.lang.String cname)
          Create access class for getting and setting a bean-style property value.
static void main(java.lang.String[] args)
           
 
Methods inherited from class gov.nih.nci.caarray.services.fileparse2.arraydesign.test.TimeCalls
run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BCELCalls

public BCELCalls()
Method Detail

createAccess

protected byte[] createAccess(java.lang.Class tclas,
                              java.lang.reflect.Method gmeth,
                              java.lang.reflect.Method smeth,
                              java.lang.String cname)
Create access class for getting and setting a bean-style property value. This creates a class that implements a get/set interface, with the actual implementations of the get and set methods simply calling the supplied target class methods, returning the bytecode array. As written, this only works with int property values, but could easily be modified for any other type.

Specified by:
createAccess in class TimeCalls
Parameters:
tclas - target class (may inherit get and set methods, or implement directly)
gmeth - get method (must take nothing, return int)
smeth - set method (must take int, return void)
cname - name for constructed access class
Returns:
instance of class implementing the object interface

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception