org.mesopotamia.lang.java.ref
Class SoftCachingTypeInfo

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

public abstract class SoftCachingTypeInfo
extends java.lang.Object
implements TypeInfo

Type info which caches resolved types, methods, and variables in soft references and other values in hard references.

Author:
Pavel

Constructor Summary
SoftCachingTypeInfo()
           
 
Method Summary
 MethodInfo findConstructor(java.lang.String[] parameterTypes)
           
protected abstract  MethodInfo findConstructorInternal(java.lang.String[] parameterTypes)
           
protected abstract  MethodInfo findMethodInternal(java.lang.String name, java.lang.String[] parameterTypes)
           
 TypeInfo findNestedType(java.lang.String name)
           
protected abstract  TypeInfo findNestedTypeInternal(java.lang.String name)
           
 MethodInfo findTypeMethod(java.lang.String name, java.lang.String[] parameterTypes)
           
 VariableInfo findTypeVariable(java.lang.String name)
           
protected abstract  VariableInfo findTypeVariableInternal(java.lang.String name)
           
 TypeInfo getDeclaringType()
           
protected abstract  TypeInfo getDeclaringTypeInternal()
           
 java.lang.String getFcn()
           
protected abstract  java.lang.String getFcnInternal()
           
 java.util.List<java.lang.String> getModifiers()
           
protected abstract  java.util.List<java.lang.String> getModifiersInternal()
           
 boolean isKindOf(java.lang.String superFcn)
           
protected abstract  boolean isKindOfInternal(java.lang.String superFcn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mesopotamia.lang.java.ref.Info
getName
 

Constructor Detail

SoftCachingTypeInfo

public SoftCachingTypeInfo()
Method Detail

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

findConstructorInternal

protected abstract MethodInfo findConstructorInternal(java.lang.String[] parameterTypes)

findMethodInternal

protected abstract MethodInfo findMethodInternal(java.lang.String name,
                                                 java.lang.String[] parameterTypes)

findNestedType

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

findNestedTypeInternal

protected abstract TypeInfo findNestedTypeInternal(java.lang.String name)

findTypeVariable

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

findTypeVariableInternal

protected abstract VariableInfo findTypeVariableInternal(java.lang.String name)

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.

isKindOfInternal

protected abstract boolean isKindOfInternal(java.lang.String superFcn)

getDeclaringTypeInternal

protected abstract TypeInfo getDeclaringTypeInternal()

getDeclaringType

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

getFcnInternal

protected abstract java.lang.String getFcnInternal()

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.

getModifiersInternal

protected abstract java.util.List<java.lang.String> getModifiersInternal()

getModifiers

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


Copyright © 2005 Hammurapi Group. All Rights Reserved.