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, usesclone, finalize, getClass, notify, notifyAll, wait, wait, waitdependencyClosure, minus, minus, minus, minus, named, partitionBy, partitionBy, partitionByPackage, plus, plus, slice, slice, slice, usespublic 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)
Sliceslice in interface Slicepredicate - the predicatefor predefined predicatespublic boolean contains(Clazz clazz)
Slicepublic Set<Clazz> getClazzes()
SliceClasspath. A slice derived from some pattern or Predicate
will throw a ResolveException instead.getClazzes in interface Slicepublic 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()
SlicegetDependencies in interface SlicegetDependencies in class AbstractSlicepublic Integer getVersion()
Copyright © 2017–2025 Hans Jörg Heßmann. All rights reserved.