com.caucho.bytecode
Class JClassDependency

java.lang.Object
  extended by com.caucho.bytecode.JClassDependency
All Implemented Interfaces:
Dependency, PersistentDependency

public class JClassDependency
extends java.lang.Object
implements PersistentDependency

Representing a class that might change.


Constructor Summary
JClassDependency(JClass cl)
          Creates the class dependency.
JClassDependency(JClass cl, java.lang.String digest)
          Create a new dependency with a given digest.
JClassDependency(java.lang.String className, java.lang.String digest)
          Create a new dependency with a given digest.
 
Method Summary
 java.lang.String getDigest()
          Calculates a MD5 digest of the class.
 java.lang.String getJavaCreateString()
          Returns a string which will recreate the dependency.
 boolean isEqual(java.lang.Object o)
           
 boolean isModified()
          Returns true if the underlying resource has changed.
 boolean logModified(java.util.logging.Logger log)
          Log the reason for modification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JClassDependency

public JClassDependency(JClass cl)
Creates the class dependency.


JClassDependency

public JClassDependency(JClass cl,
                        java.lang.String digest)
Create a new dependency with a given digest.

Parameters:
cl - the source class
digest - the MD5 digest

JClassDependency

public JClassDependency(java.lang.String className,
                        java.lang.String digest)
Create a new dependency with a given digest.

Parameters:
cl - the source class
digest - the MD5 digest
Method Detail

isModified

public boolean isModified()
Returns true if the underlying resource has changed.

Specified by:
isModified in interface Dependency

logModified

public boolean logModified(java.util.logging.Logger log)
Log the reason for modification

Specified by:
logModified in interface Dependency

getDigest

public java.lang.String getDigest()
Calculates a MD5 digest of the class.


getJavaCreateString

public java.lang.String getJavaCreateString()
Returns a string which will recreate the dependency.

Specified by:
getJavaCreateString in interface PersistentDependency

isEqual

public boolean isEqual(java.lang.Object o)