com.caucho.java.gen
Class DependencyComponent

java.lang.Object
  extended by com.caucho.java.gen.ClassComponent
      extended by com.caucho.java.gen.DependencyComponent

public class DependencyComponent
extends ClassComponent

Basic method generation.


Constructor Summary
DependencyComponent()
           
 
Method Summary
 void addDependency(PersistentDependency depend)
          Adds a dependency.
 void addDependencyList(java.util.ArrayList<PersistentDependency> dependList)
          Adds a dependency list.
 void generate(JavaWriter out)
          Generates the code for the dependencies.
protected  void printVersionChange(JavaWriter out)
          Prints code to detect a version change.
 void setSearchPath(Path searchPath)
          Sets the search path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyComponent

public DependencyComponent()
Method Detail

setSearchPath

public void setSearchPath(Path searchPath)
Sets the search path.


addDependencyList

public void addDependencyList(java.util.ArrayList<PersistentDependency> dependList)
Adds a dependency list.


addDependency

public void addDependency(PersistentDependency depend)
Adds a dependency.


generate

public void generate(JavaWriter out)
              throws java.io.IOException
Generates the code for the dependencies.

Overrides:
generate in class ClassComponent
Parameters:
out - the writer to the output stream.
Throws:
java.io.IOException

printVersionChange

protected void printVersionChange(JavaWriter out)
                           throws java.io.IOException
Prints code to detect a version change.

Throws:
java.io.IOException