Package org.vafer.jdependency
Class Clazz
java.lang.Object
org.vafer.jdependency.Clazz
- All Implemented Interfaces:
Comparable<Clazz>
A `Clazz` represents the single class identifier inside a classpath.
There is only one `Clazz` per classname. It has incoming and outgoing
edges defining references and dependencies. If there are different
versions found, it collects their sources as ClazzpathUnits.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClazzpathUnit(ClazzpathUnit pUnit, String pDigest)voidaddDependency(Clazz pClazz)voidaddMultiReleaseFile(ClazzpathUnit pUnit, String pForJava, String pFileName)Record that this class name can be found at:intbooleangetName()inthashCode()static booleanisMultiReleaseClassFile(String pFileName)Determine if the provided filename is the name of a class that is specific for a java version.static Clazz.ParsedFileNameparseClassFileName(String pFileName)Determine the class name for the provided filename.voidremoveClazzpathUnit(ClazzpathUnit pUnit)voidremoveDependency(Clazz pClazz)toString()
-
Constructor Details
-
Clazz
-
-
Method Details
-
parseClassFileName
Determine the class name for the provided filename.- Parameters:
pFileName- The filename- Returns:
- the class name for the provided filename OR null if it is not a .class file.
-
isMultiReleaseClassFile
Determine if the provided filename is the name of a class that is specific for a java version.- Parameters:
pFileName- The filename to be evaluated- Returns:
- true if this is a filename for a specific java version, false if it is not
-
addMultiReleaseFile
Record that this class name can be found at:- Parameters:
pUnit- The unit in which the class can be foundpForJava- For which Java versionpFileName- Under which filename in the jar.
-
getName
-
getFileNames
-
addClazzpathUnit
-
removeClazzpathUnit
-
getClazzpathUnits
-
getVersions
-
addDependency
-
removeDependency
-
getDependencies
-
getReferences
-
getTransitiveDependencies
-
equals
-
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable<Clazz>
-
toString
-