public class KeYCrossReferenceSourceInfo extends DefaultCrossReferenceSourceInfo
recoder.service.DefaultCrossReferenceSourceInfo.SubTypeTopSortrecoder.service.DefaultProgramModelInfo.ClassTypeCacheEntry, recoder.service.DefaultProgramModelInfo.ReplaceTypeArgResult, recoder.service.DefaultProgramModelInfo.ResolvedTypeArgument, recoder.service.DefaultProgramModelInfo.SuperTypeTopSort| Modifier and Type | Field and Description | 
|---|---|
private boolean | 
ignoreUnresolvedClasses
The flag which decides on the behaviour on undefined classes 
 | 
private java.util.HashMap<java.lang.String,VariableSpecification> | 
names2vars  | 
protected java.util.Map<java.lang.String,CompilationUnit> | 
stubClasses
The mapping from class names to stub compilation units. 
 | 
listeners, name2primitiveType, reference2elementclassTypeCacheserviceConfigurationMETHOD_EXITELEMENT_LONG, ELEMENT_LONG_LOCAL, ELEMENT_SHORTINITIAL_CROSS_REFERENCER_ELEMENT2REFERENCE_HASH_SET_SIZE, INITIAL_SOURCE_INFO_NAME2PRIMITIVE_HASH_SET_SIZE, INITIAL_SOURCE_INFO_REFERENCE2ELEMENT_HASH_SET_SIZE| Constructor and Description | 
|---|
KeYCrossReferenceSourceInfo(ServiceConfiguration config)  | 
| Modifier and Type | Method and Description | 
|---|---|
private void | 
eclipseWorkaroundMethodAccess(ClassType c1,
                             ClassType c2)  | 
ClassType | 
getContainingClassType(ProgramElement context)
Returns the class type that contains the given program element. 
 | 
java.util.Collection<? extends CompilationUnit> | 
getCreatedStubClasses()
Gets the collection of created stub classes ion their compilation units 
 | 
Type | 
getType(Expression expr)
clears the cache for the TypeReference to Type resolution. 
 | 
Type | 
getType(java.lang.String name,
       ProgramElement context)
Tries to find a type with the given name using the given program element
 as context. 
 | 
Type | 
getType(TypeReference tr)  | 
Variable | 
getVariable(java.lang.String name,
           ProgramElement context)  | 
void | 
initialize(ServiceConfiguration cfg)
Called by the service configuration indicating that all services
       are known. 
 | 
void | 
modelChanged(ChangeHistoryEvent event)  | 
private ProgramElement | 
redirectScopeNesting(ProgramElement scope)
redirects the nesting of scopes when a method-frame occurs 
 | 
(package private) void | 
registerSubtype(ClassType c1,
               ClassType c2)  | 
private void | 
registerUnresolvedTypeRef(TypeReference tyref)  | 
void | 
setIgnoreUnresolvedClasses(boolean ignoreUnresolvedClasses)
Sets if unresolved classes result in an exception or lead to stubs. 
 | 
void | 
setNames2Vars(java.util.HashMap<java.lang.String,VariableSpecification> names2vars)  | 
getReferences, getReferences, getReferences, getReferences, getReferences, getReferences, information, resetaddProgressListener, addToTypeList, containsTypeParameter, flushScopes, getAnnotationProperty, getAnnotationType, getClassTypeContainer, getConstructor, getConstructor, getConstructorDeclaration, getConstructors, getConstructors, getConstructors, getContainingClassType, getErrorHandler, getExceptions, getField, getFields, getFields, getFromPackageImports, getFromTypeImports, getFromUnitPackage, getInheritedField, getInheritedType, getLocalType, getMethod, getMethod, getMethodDeclaration, getMethods, getMethods, getMethods, getNameInfo, getPackage, getPackage, getReturnType, getSignature, getSucceedingStatements, getSupertypes, getType, getType, getType, getType, getTypeDeclaration, getTypeList, getTypes, getTypes, getVariable, getVariable, getVariableSpecification, isNarrowingTo, isPartOf, makeSignature, processChange, register, removeProgressListener, resolveURQ, resolveURQ, unregister, unregister, unregister, unregister, unregisterdoThreePhaseFilter, filterApplicableMethods, filterMostSpecificMethods, filterMostSpecificMethodsPhase2, filterMostSpecificMethodsPhase3, getAllFields, getAllMethods, getAllSubtypes, getAllSupertypes, getAllTypes, getBaseType, getBoxedType, getChangeHistory, getConstructors, getConstructors, getMethods, getMethods, getMethods, getOutermostType, getPromotedType, getSubtypes, getUnboxedType, isCompatibleSignature, isCompatibleSignature, isSubtype, isSupertype, isVisibleFor, isWidening, isWidening, isWidening, isWidening, makeParameterizedArrayType, removeSubtype, replaceTypeArg, replaceTypeArgs, updateModelgetServiceConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProgressListener, getAnnotationProperty, getAnnotationType, getConstructor, getConstructor, getConstructorDeclaration, getConstructors, getConstructors, getField, getFields, getMethod, getMethod, getMethodDeclaration, getMethods, getMethods, getPackage, getSucceedingStatements, getType, getType, getType, getTypeDeclaration, getTypes, getVariable, getVariable, getVariableSpecification, isNarrowingTo, makeSignature, register, removeProgressListener, resolveURQfilterApplicableMethods, filterMostSpecificMethods, filterMostSpecificMethodsPhase2, filterMostSpecificMethodsPhase3, getAllFields, getAllMethods, getAllSubtypes, getAllSupertypes, getAllTypes, getBoxedType, getClassTypeContainer, getConstructors, getConstructors, getContainingClassType, getExceptions, getFields, getMethods, getMethods, getMethods, getMethods, getPackage, getPromotedType, getReturnType, getSignature, getSubtypes, getSupertypes, getType, getTypes, getUnboxedType, isCompatibleSignature, isCompatibleSignature, isSubtype, isSupertype, isVisibleFor, isWidening, isWidening, isWidening, isWideninggetServiceConfigurationprivate java.util.HashMap<java.lang.String,VariableSpecification> names2vars
protected java.util.Map<java.lang.String,CompilationUnit> stubClasses
private boolean ignoreUnresolvedClasses
public KeYCrossReferenceSourceInfo(ServiceConfiguration config)
public void setNames2Vars(java.util.HashMap<java.lang.String,VariableSpecification> names2vars)
public void initialize(ServiceConfiguration cfg)
initialize in interface Serviceinitialize in class DefaultSourceInfocfg - the service configuration this services has been assigned to.public ClassType getContainingClassType(ProgramElement context)
getContainingClassType in interface SourceInfogetContainingClassType in class DefaultSourceInfocontext - a program element.null).public void modelChanged(ChangeHistoryEvent event)
modelChanged in interface ChangeHistoryListenermodelChanged in class DefaultCrossReferenceSourceInfovoid registerSubtype(ClassType c1, ClassType c2)
registerSubtype in class DefaultProgramModelInfoprivate void eclipseWorkaroundMethodAccess(ClassType c1, ClassType c2)
public Variable getVariable(java.lang.String name, ProgramElement context)
getVariable in interface SourceInfogetVariable in class DefaultSourceInfopublic Type getType(java.lang.String name, ProgramElement context)
null.
 This method is identical to
 DefaultSourceInfo.getType(String, ProgramElement)
 but it uses pe = redirectScopeNesting(pe); instead of
 s.getASTParent(); in Recoder 0.84.getType in interface SourceInfogetType in class DefaultSourceInfoname - the name for the type to be looked up; may or may not be
                qualified.context - a program element defining the lookup context (scope).null).private ProgramElement redirectScopeNesting(ProgramElement scope)
scope - the current scopepublic void setIgnoreUnresolvedClasses(boolean ignoreUnresolvedClasses)
registerUnresolvedTypeRef(TypeReference) to create dummy stubs.ignoreUnresolvedClasses - ignore unresolved classes iff truepublic Type getType(TypeReference tr)
getType in interface SourceInfogetType in class DefaultSourceInfoprivate void registerUnresolvedTypeRef(TypeReference tyref)
public java.util.Collection<? extends CompilationUnit> getCreatedStubClasses()
public Type getType(Expression expr)
getType in interface SourceInfogetType in class DefaultSourceInfo