biz.hammurapi.codegen
Class Class

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

public class Class
extends ClassGeneratorBase

Version:
$Revision: 1.5 $
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
Class(java.lang.String definition, java.lang.String description, GenerationListener listener)
           
 
Method Summary
 void addField(java.lang.String name, java.lang.String type, java.lang.String description, java.util.Properties attributes)
          Creates a private field of specified name and type.
 
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

Class

public Class(java.lang.String definition,
             java.lang.String description,
             GenerationListener listener)
      throws GenerationException
Parameters:
definition - E.g. public class C extends a.b.A implements a.b.c.d.B Superinterfaces names shall be fully qualified.
description -
listener -
Throws:
GenerationException
Method Detail

addField

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

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


Copyright © 2003 Hammurapi Group. All Rights Reserved.