public class JClassDependency extends java.lang.Object implements PersistentDependency
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
public JClassDependency(JClass cl)
public JClassDependency(JClass cl, java.lang.String digest)
cl
- the source classdigest
- the MD5 digestpublic JClassDependency(java.lang.String className, java.lang.String digest)
cl
- the source classdigest
- the MD5 digestpublic boolean isModified()
isModified
in interface Dependency
public boolean logModified(java.util.logging.Logger log)
logModified
in interface Dependency
public java.lang.String getDigest()
public java.lang.String getJavaCreateString()
getJavaCreateString
in interface PersistentDependency
public boolean isEqual(java.lang.Object o)