org.codehaus.mojo.animal_sniffer
Class Clazz

java.lang.Object
  extended by 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

Constructor Summary
Clazz(Clazz defA, Clazz defB)
          Merges two class instances.
Clazz(String name, Set signatures, String superClass, String[] superInterfaces)
          Creates a new class signature.
 
Method Summary
 String getName()
           
 Set getSignatures()
           
 String getSuperClass()
           
 String[] getSuperInterfaces()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

getName

public String getName()

getSignatures

public Set getSignatures()

getSuperClass

public String getSuperClass()

getSuperInterfaces

public String[] getSuperInterfaces()


Copyright © 2008-2012 Codehaus. All Rights Reserved.