public final class Clazz extends AbstractSlice implements Comparable<Clazz>
Slice
that represents a single .class file.Modifier and Type | Method and Description |
---|---|
int |
compareTo(Clazz o) |
boolean |
contains(Clazz clazz)
Check whether a class belongs to a slice.
|
boolean |
equals(Object obj) |
List<Clazz> |
getAlternatives() |
ClassFile |
getClassFile() |
Class<?> |
getClassImpl() |
Set<Clazz> |
getClazzes()
Returns all classes belonging to this slice.
|
ConcreteSlice |
getDependencies()
Returns a slice of all the dependencies of this slice.
|
Clazz |
getHost() |
List<Clazz> |
getImplementedInterfaces() |
String |
getName() |
Slice |
getNest() |
String |
getPackageName() |
Root |
getRoot() |
String |
getShortName() |
String |
getSimpleName() |
Clazz |
getSuperclass() |
URI |
getURI() |
Integer |
getVersion()
Returns the major version number N, if the .class file is located
in the META-INF/versions/N directory of a Multi-release JAR file, null otherwise.
|
int |
hashCode() |
boolean |
isUnknown() |
Slice |
slice(Predicate<Clazz> predicate)
Creates a new slices of all classes of this slide that fulfill the specified
name predicate.
|
String |
toString() |
dependencyClosure, minus, minus, minus, minus, named, partitionBy, partitionBy, partitionByPackage, plus, plus, slice, slice, slice, uses
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
dependencyClosure, minus, minus, minus, minus, named, partitionBy, partitionBy, partitionByPackage, plus, plus, slice, slice, slice, uses
public static final Clazz UNDEFINED
public ClassFile getClassFile()
public String getName()
public String getPackageName()
public String getSimpleName()
public String getShortName()
public URI getURI()
public Slice slice(Predicate<Clazz> predicate)
Slice
slice
in interface Slice
predicate
- the predicatefor predefined predicates
public boolean contains(Clazz clazz)
Slice
public Set<Clazz> getClazzes()
Slice
Classpath
. A slice derived from some pattern or Predicate
will throw a ResolveException
instead.getClazzes
in interface Slice
public int compareTo(Clazz o)
compareTo
in interface Comparable<Clazz>
public boolean isUnknown()
public Class<?> getClassImpl()
public Clazz getSuperclass()
public Clazz getHost()
public Slice getNest()
public ConcreteSlice getDependencies()
Slice
getDependencies
in interface Slice
getDependencies
in class AbstractSlice
public Integer getVersion()
Copyright © 2017–2023 Hans Jörg Heßmann. All rights reserved.