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

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

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

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

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

JavaType[] getInnerClasses()

getMethods

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

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

boolean isPrimitive()

isArray

boolean isArray()

isFinal

boolean isFinal()

isAbstract

boolean isAbstract()

isInterface

boolean isInterface()


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