org.mesopotamia.lang.java.ref.bcel
Class JavaClassTypeInfo

java.lang.Object
  extended by org.mesopotamia.lang.java.ref.bcel.JavaClassTypeInfo
All Implemented Interfaces:
Info, TypeInfo

public class JavaClassTypeInfo
extends java.lang.Object
implements TypeInfo


Method Summary
 MethodInfo findConstructor(java.lang.String[] parameterTypes)
           
 TypeInfo findNestedType(java.lang.String name)
           
 MethodInfo findTypeMethod(java.lang.String name, java.lang.String[] parameterTypes)
           
 VariableInfo findTypeVariable(java.lang.String name)
           
 TypeInfo getDeclaringType()
           
 java.lang.String getFcn()
           
 java.util.List<java.lang.String> getModifiers()
           
 java.lang.String getName()
           
 boolean isKindOf(java.lang.String superFcn)
           
static java.util.List<java.lang.String> modifiersList(int mod)
           
static TypeSpecInfo string2TypeSpecInfo(java.lang.String typeName, Scope scope, JavaClassTypeInfoRepository repository)
           
 java.lang.String toString()
           
static TypeSpecInfo type2TypeSpecInfo(Type type, Scope scope, JavaClassTypeInfoRepository repository)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

findNestedType

public TypeInfo findNestedType(java.lang.String name)
Specified by:
findNestedType in interface TypeInfo

findTypeMethod

public MethodInfo findTypeMethod(java.lang.String name,
                                 java.lang.String[] parameterTypes)
Specified by:
findTypeMethod in interface TypeInfo

findConstructor

public MethodInfo findConstructor(java.lang.String[] parameterTypes)
Specified by:
findConstructor in interface TypeInfo

findTypeVariable

public VariableInfo findTypeVariable(java.lang.String name)
Specified by:
findTypeVariable in interface TypeInfo

isKindOf

public boolean isKindOf(java.lang.String superFcn)
Specified by:
isKindOf in interface TypeInfo
Parameters:
superFcn - Fully qualified name of superclass or superinterface.
Returns:
true if class/interface represented by this type info is the same or subclass or subinterface of class/interface with name passed in superFcn parameter.

getDeclaringType

public TypeInfo getDeclaringType()
Specified by:
getDeclaringType in interface Info
Returns:
Information about declaring type. Null for local variables and local and anonymous classes.

getFcn

public java.lang.String getFcn()
Specified by:
getFcn in interface Info
Returns:
Fully qualified name. Null for local variables and local and anonymous classes/interfaces.

getModifiers

public java.util.List<java.lang.String> getModifiers()
Specified by:
getModifiers in interface Info

getName

public java.lang.String getName()
Specified by:
getName in interface Info
Returns:
Variable, type of method name.

modifiersList

public static java.util.List<java.lang.String> modifiersList(int mod)

type2TypeSpecInfo

public static TypeSpecInfo type2TypeSpecInfo(Type type,
                                             Scope scope,
                                             JavaClassTypeInfoRepository repository)
Parameters:
type -
repository -

string2TypeSpecInfo

public static TypeSpecInfo string2TypeSpecInfo(java.lang.String typeName,
                                               Scope scope,
                                               JavaClassTypeInfoRepository repository)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 Hammurapi Group. All Rights Reserved.