org.enhydra.xml.xmlc.compiler
Class AccessMethods

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.compiler.AccessMethods

class AccessMethods
extends Object

Data collection and code generation for element access methods.


Constructor Summary
AccessMethods(MetaData metaData, ElementTable elementTable, AccessorGenerator accessorGenerator)
          Constructor.
 
Method Summary
 void generateCode(JavaClass docClass)
          Generate the code for the access methods.
 void printAccessMethods(PrintWriter out)
          Print the signatures of the access methods are created.
 void printOmittedIds(PrintWriter out)
          Print ids that didn't have accessors generated due to being illegal Java identifiers.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessMethods

public AccessMethods(MetaData metaData,
                     ElementTable elementTable,
                     AccessorGenerator accessorGenerator)
Constructor.
Method Detail

generateCode

public void generateCode(JavaClass docClass)
Generate the code for the access methods.
Parameters:
docClass - Object containing the class being generated.

printAccessMethods

public void printAccessMethods(PrintWriter out)
Print the signatures of the access methods are created.

printOmittedIds

public void printOmittedIds(PrintWriter out)
Print ids that didn't have accessors generated due to being illegal Java identifiers. We keep them sorted so that the test always work.


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.