edu.rit.m2mi
Class Synthesizer

java.lang.Object
  extended by edu.rit.m2mi.Synthesizer
Direct Known Subclasses:
HandleSynthesizer, MethodInvokerSynthesizer

public abstract class Synthesizer
extends Object

Class Synthesizer is the abstract base class for an object that synthesizes some type of class. Subclass MethodInvokerSynthesizer synthesizes a method invoker class. Subclass HandleSynthesizer synthesizes a handle class.


Constructor Summary
Synthesizer(String theClassName)
          Create a new synthesizer object.
 
Method Summary
abstract  SynthesizedClassDescription getClassDescription()
          Synthesize this synthesizer's class description.
 byte[] getClassFile()
          Synthesize this synthesizer's class file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Synthesizer

public Synthesizer(String theClassName)
Create a new synthesizer object.

Parameters:
theClassName - Name of the synthesized class.
Throws:
NullPointerException - (unchecked exception) Thrown if theClassName is null.
Method Detail

getClassFile

public byte[] getClassFile()
Synthesize this synthesizer's class file.

Returns:
Byte array containing the class file for the synthesized class.
Throws:
InvalidMethodException - (unchecked exception) Thrown if any target interface is a class rather than an interface, if any method in any target interface returns a value, or if any method in any target interface throws any checked exceptions.
SynthesisException - (unchecked exception) Thrown if there was a problem synthesizing the class.

getClassDescription

public abstract SynthesizedClassDescription getClassDescription()
Synthesize this synthesizer's class description.

Returns:
Synthesized class description.
Throws:
InvalidMethodException - (unchecked exception) Thrown if any target interface is a class rather than an interface, if any method in any target interface returns a value, or if any method in any target interface throws any checked exceptions.
SynthesisException - (unchecked exception) Thrown if there was a problem synthesizing the class.


Copyright © 2001-2006 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.