org.mesopotamia.lang.java.ref
Class SoftCachingTypeInfo
java.lang.Object
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
| 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 |
SoftCachingTypeInfo
public SoftCachingTypeInfo()
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.