Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.checks.usage.transmogrify
Interface IClass  view IClass download IClass.java

All Superinterfaces:
IDefinition
All Known Implementing Classes:
ArrayDef, ClassDef, ExternalClass, NullClass, UnknownClass

public interface IClass
extends IDefinition

interface implemented by classes/interfaces definition, for source or non-sourced classes and interfaces The implementor of this class have all information about its inner classes, methods, variables, subclasses, etc.


Method Summary
 void addImplementor(ClassDef implementor)
          adds ClassDef to the collection of implemented interfaces of this class
 void addSubclass(ClassDef subclass)
          adds ClassDef to the collection of (direct?) subclasses of this class
 IClass getClassDefinition(java.lang.String name)
          gets class definition referenced by this class, including its inner classes, imported classes, packages, and its parent scope referenced class definitions
 java.util.List getImplementors()
          gets the list of ClassDefs that implmement this interface
 IClass[] getInnerClasses()
          gets inner classes definition associated with this class
 IClass[] getInterfaces()
          gets interfaces definition implemented by this class definition
 IMethod getMethodDefinition(java.lang.String name, ISignature signature)
          gets the method associated with the given name and signature
 java.util.List getSubclasses()
          gets subclasses definition of this class definition
 IClass getSuperclass()
          gets superclass definition of this class
 IVariable getVariableDefinition(java.lang.String name)
          gets the VariableDef associated with the given name
 boolean isCompatibleWith(IClass type)
          verifies if the input type is equal to this class or its superclass or its interfaces
 boolean isPrimitive()
          verifies if this class is of primitive Java type
 
Methods inherited from interface com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.IDefinition
addReference, getName, getNumReferences, getQualifiedName, getReferences, isSourced
 

Method Detail

getSuperclass

public IClass getSuperclass()
gets superclass definition of this class


getInterfaces

public IClass[] getInterfaces()
gets interfaces definition implemented by this class definition


getSubclasses

public java.util.List getSubclasses()
gets subclasses definition of this class definition


getClassDefinition

public IClass getClassDefinition(java.lang.String name)
gets class definition referenced by this class, including its inner classes, imported classes, packages, and its parent scope referenced class definitions


getMethodDefinition

public IMethod getMethodDefinition(java.lang.String name,
                                   ISignature signature)
gets the method associated with the given name and signature


getVariableDefinition

public IVariable getVariableDefinition(java.lang.String name)
gets the VariableDef associated with the given name


addSubclass

public void addSubclass(ClassDef subclass)
adds ClassDef to the collection of (direct?) subclasses of this class


addImplementor

public void addImplementor(ClassDef implementor)
adds ClassDef to the collection of implemented interfaces of this class


getImplementors

public java.util.List getImplementors()
gets the list of ClassDefs that implmement this interface


isCompatibleWith

public boolean isCompatibleWith(IClass type)
verifies if the input type is equal to this class or its superclass or its interfaces


isPrimitive

public boolean isPrimitive()
verifies if this class is of primitive Java type


getInnerClasses

public IClass[] getInnerClasses()
gets inner classes definition associated with this class