Package org.fedoraproject.javadeptools
Class JavaClass
- java.lang.Object
-
- org.fedoraproject.javadeptools.JavaClass
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>dependenciesprivate java.lang.Stringname
-
Constructor Summary
Constructors Constructor Description JavaClass(java.lang.String filename, java.io.InputStream is)Read class definition from an input stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(JavaClass rhs)(package private) java.util.Set<java.lang.String>getDependencies()java.lang.StringgetName()Get the the qualified name of the class.java.lang.StringgetPackageName()Get the the qualified name of the Java package the class belongs to.
-
-
-
Constructor Detail
-
JavaClass
public JavaClass(java.lang.String filename, java.io.InputStream is) throws java.io.IOExceptionRead class definition from an input stream.- Parameters:
filename- the name of the class file (used to determine the class name)is- the input stream to read the class file from- Throws:
java.io.IOException- if I/O exception occurs while reading from the input stream
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the the qualified name of the class.- Returns:
- the qualified name of the class.
-
getPackageName
public java.lang.String getPackageName()
Get the the qualified name of the Java package the class belongs to.- Returns:
- the qualified name of the Java package the class belongs to.
-
compareTo
public int compareTo(JavaClass rhs)
- Specified by:
compareToin interfacejava.lang.Comparable<JavaClass>
-
getDependencies
java.util.Set<java.lang.String> getDependencies()
-
-