org.codehaus.mojo.animal_sniffer
Class Clazz
java.lang.Object
org.codehaus.mojo.animal_sniffer.Clazz
- All Implemented Interfaces:
- Serializable
public final class Clazz
- extends Object
- implements Serializable
Represents a class signature.
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Clazz
public Clazz(String name,
Set signatures,
String superClass,
String[] superInterfaces)
- Creates a new class signature.
- Parameters:
name - the name of the class.signatures - the signatures.superClass - the superclass.superInterfaces - the interfaces implemented by the class.
Clazz
public Clazz(Clazz defA,
Clazz defB)
- Merges two class instances.
- Parameters:
defA - the first instance.defB - the second instance
- Throws:
ClassCastException - if the two instances have different names or if the superclasses differ.
getName
public String getName()
getSignatures
public Set getSignatures()
getSuperClass
public String getSuperClass()
getSuperInterfaces
public String[] getSuperInterfaces()
Copyright © 2008-2011 Codehaus. All Rights Reserved.