Public Member Functions | Static Public Member Functions | Static Package Attributes

jde.wizards.InterfaceFactory Class Reference

Inheritance diagram for jde.wizards.InterfaceFactory:
jde.wizards.MethodFactory jde.wizards.ClassRegistry

List of all members.

Public Member Functions

 InterfaceFactory ()
 InterfaceFactory (NameFactory factory)
void flush ()
void process (String interfaceName) throws ClassNotFoundException, NotAnInterfaceException
void process (String name, boolean truncate) throws ClassNotFoundException, NotAnInterfaceException
void dump (PrintWriter out, boolean javadoc, boolean truncate, boolean newline)

Static Public Member Functions

static void makeInterface (String name, boolean javadoc, boolean truncate, boolean newline)
static void getImportedClasses ()

Static Package Attributes

static InterfaceFactory interfaceFactory

Detailed Description

Defines a factory for creating skeleton implementations of Java interfaces. The factory can be invoked from the command line or from another program. The factory can generate implementations for multiple interfaces when invoked from the command line.

Author:
Eric D. Friedman and Paul Kinnucan
Version:
Revision:
1.26

Constructor & Destructor Documentation

jde.wizards.InterfaceFactory.InterfaceFactory (  ) 
jde.wizards.InterfaceFactory.InterfaceFactory ( NameFactory  factory  ) 

Creates an InterfaceFactory that uses the specified NameFactory for generating parameter names

Parameters:
factory Factory for generating parameter names

Member Function Documentation

void jde.wizards.InterfaceFactory.dump ( PrintWriter  out,
boolean  javadoc,
boolean  truncate,
boolean  newline 
)
void jde.wizards.InterfaceFactory.flush (  ) 

Clears the import and interface hashtables for this factory so they can be re-used to process a new set of interfaces.

Reimplemented from jde.wizards.MethodFactory.

Referenced by jde.wizards.InterfaceFactory.makeInterface().

static void jde.wizards.InterfaceFactory.getImportedClasses (  )  [static]
static void jde.wizards.InterfaceFactory.makeInterface ( String  name,
boolean  javadoc,
boolean  truncate,
boolean  newline 
) [static]

Makes an implementation of an interface. This method delegates the creation of the implementation to makeInterfaceInternal.

Parameters:
name Name of interface to be implemented.
javadoc If true generate skeletal Javadoc for the implementation.
truncate If true, truncate package specifier when generating code.
newline If true, insert a newline after opening brace.

References jde.wizards.InterfaceFactory.flush(), jde.wizards.InterfaceFactory.InterfaceFactory(), and jde.wizards.InterfaceFactory.interfaceFactory.

void jde.wizards.InterfaceFactory.process ( String  name,
boolean  truncate 
) throws ClassNotFoundException, NotAnInterfaceException

Generates signatures based on introspection of the specified class.

Parameters:
name the interface to process for signatures.
truncate toggles truncation of package specifiers in signatures..
Exceptions:
NotAnInterfaceException the requested class isn't an interface
java.lang.ClassNotFoundException the requested class cannot be loaded

References jde.wizards.MethodFactory.namefactory.

void jde.wizards.InterfaceFactory.process ( String  interfaceName  )  throws ClassNotFoundException, NotAnInterfaceException

Generates signatures based on introspection of the specified interface. Strips package specifiers from generated signatures.

Parameters:
name the interface to process for signatures.
Exceptions:
NotAnInterfaceException the requested class isn't an interface
java.lang.ClassNotFoundException the requested class cannot be loaded

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties