net.sf.clirr.core.spi
Interface JavaType

All Superinterfaces:
Named, Scoped
All Known Implementing Classes:
BcelJavaType

public interface JavaType
extends Named, Scoped

A Java Type (Object, Interface, primitive type or void).

Author:
lkuehne

Method Summary
 JavaType[] getAllInterfaces()
          Return the list of all interfaces this class implements.
 JavaType getContainingClass()
          The containing class if this is an inner class.
 Field[] getFields()
          All fields that are declared by this class.
 JavaType[] getInnerClasses()
           
 Method[] getMethods()
          All methods that are declared by this class.
 java.lang.String getName()
          Type fully qualified class name.
 JavaType[] getSuperClasses()
          Return the superclasses of this class.
 boolean isAbstract()
           
 boolean isArray()
           
 boolean isFinal()
           
 boolean isInterface()
           
 boolean isPrimitive()
           
 
Methods inherited from interface net.sf.clirr.core.spi.Scoped
getDeclaredScope, getEffectiveScope
 

Method Detail

getName

public java.lang.String getName()
Type fully qualified class name.

Specified by:
getName in interface Named
Returns:
a fully qualified class name, like "my.company.procuct.SampleClass".

getContainingClass

public JavaType getContainingClass()
The containing class if this is an inner class.

Returns:
the containing class or null if this JavaType does not represent an inner class.

getSuperClasses

public JavaType[] getSuperClasses()
Return the superclasses of this class.

Returns:
the chain of superclasses of this type, starting from the direct superclass and ending with java.lang.Object.

getAllInterfaces

public JavaType[] getAllInterfaces()
Return the list of all interfaces this class implements.

Returns:
the list of all interfaces this class implements/extends, excluding this if this JavaType represents an interface itself.

getInnerClasses

public JavaType[] getInnerClasses()

getMethods

public Method[] getMethods()
All methods that are declared by this class. Methods of superclasses/interfaces are not returned if they are not overridden/redeclared here.

Returns:
all methods that are declared by this class.

getFields

public Field[] getFields()
All fields that are declared by this class. Fields of superclasses/interfaces are not returned.

Returns:
all fields that are declared by this class.

isPrimitive

public boolean isPrimitive()

isArray

public boolean isArray()

isFinal

public boolean isFinal()

isAbstract

public boolean isAbstract()

isInterface

public boolean isInterface()


Copyright © 2003-2008 Lars K??hne. All Rights Reserved.