biz.hammurapi.codegen
Class Interface

java.lang.Object
  extended by biz.hammurapi.codegen.ClassGeneratorBase
      extended by biz.hammurapi.codegen.Interface

public class Interface
extends ClassGeneratorBase

Version:
$Revision: 1.7 $
Author:
Pavel Vlasov

Nested Class Summary
 
Nested classes/interfaces inherited from class biz.hammurapi.codegen.ClassGeneratorBase
ClassGeneratorBase.FieldDescriptor
 
Field Summary
 
Fields inherited from class biz.hammurapi.codegen.ClassGeneratorBase
cg, listener
 
Constructor Summary
Interface(java.lang.String definition, java.lang.String description, GenerationListener listener)
          Constructor
 
Method Summary
 void addField(java.lang.String name, java.lang.String type, java.lang.String description, java.util.Properties attributes)
          Creates a public static final field of specified name and type.
 org.apache.bcel.generic.MethodGen addMethod(java.lang.String definition, java.util.Collection parameters, java.lang.String description, java.util.Properties attributes)
           
 
Methods inherited from class biz.hammurapi.codegen.ClassGeneratorBase
addField, addStaticInitializer, checkMethod, cloneInstructions, concat, createGetField, createInvoke, createInvoke, createPutField, field, getClassGen, getInstructionFactory, getJavaClass, getMethod, hasField, invocation, java2BcelType, modifiers, printMethod, printMethod, save, showField, showInvocation, showTypeDefinition, toString, typeDefinition, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interface

public Interface(java.lang.String definition,
                 java.lang.String description,
                 GenerationListener listener)
          throws GenerationException
Constructor

Parameters:
definition - E.g. public interface C extends a.b.A, a.b.c.d.B Superinterfaces names shall be fully qualified.
description -
listener -
Throws:
GenerationException
Method Detail

addMethod

public org.apache.bcel.generic.MethodGen addMethod(java.lang.String definition,
                                                   java.util.Collection parameters,
                                                   java.lang.String description,
                                                   java.util.Properties attributes)
                                            throws GenerationException
Parameters:
definition - E.g. public void setX(int x) All types shall be fully qualified.
parameters - Collection of Parameter Parameters to be appended to parameters in definition. Can be null.
description -
Returns:
Throws:
GenerationException

addField

public void addField(java.lang.String name,
                     java.lang.String type,
                     java.lang.String description,
                     java.util.Properties attributes)
              throws GenerationException
Creates a public static final field of specified name and type.

Parameters:
name -
type -
description -
attributes -
Throws:
GenerationException


Copyright © 2003 Hammurapi Group. All Rights Reserved.