public class CompilationUnitTypeOracleUpdater extends TypeOracleUpdater
TypeOracle
from a set of
compilation units.Modifier and Type | Class and Description |
---|---|
protected class |
CompilationUnitTypeOracleUpdater.TypeOracleBuildContext
This context keeps common data so we don't have to pass it around between methods for one pass
of
addNewTypesDontIndex(TreeLogger, Collection,
MethodArgNamesLookup) . |
typeOracle
Constructor and Description |
---|
CompilationUnitTypeOracleUpdater(TypeOracle typeOracle) |
Modifier and Type | Method and Description |
---|---|
protected void |
addNewTypesDontIndex(TreeLogger logger,
Collection<CompilationUnit> compilationUnits) |
void |
addNewUnits(TreeLogger logger,
Collection<CompilationUnit> compilationUnits)
Adds new units to an existing TypeOracle and indexes their type hierarchy.
|
protected JRealClassType |
findByInternalName(String internalName)
Returns the type corresponding to the given internal name.
Implementations are free to service requests eagerly or lazily. |
static Class |
forName(String name) |
protected CompilationUnitTypeOracleUpdater.TypeOracleBuildContext |
getContext(MethodArgNamesLookup argsLookup)
Returns a new build context to use for the duration of one addNewTypesDontIndex() invocation.
|
Resolver |
getMockResolver() |
TypeOracle |
getTypeOracle() |
Map<String,JRealClassType> |
getTypesByInternalName() |
addAnnotations, addAnnotations, addImplementedInterface, addModifierBits, addModifierBits, addThrows, finish, newAnnotationMethod, newAnnotationType, newConstructor, newEnumConstant, newEnumType, newField, newMethod, newParameter, newRealClassType, setEnclosingType, setFieldType, setReturnType, setSuperClass, setVarArgs
public CompilationUnitTypeOracleUpdater(TypeOracle typeOracle)
public void addNewUnits(TreeLogger logger, Collection<CompilationUnit> compilationUnits)
protected void addNewTypesDontIndex(TreeLogger logger, Collection<CompilationUnit> compilationUnits)
public Resolver getMockResolver()
public TypeOracle getTypeOracle()
public Map<String,JRealClassType> getTypesByInternalName()
protected JRealClassType findByInternalName(String internalName)
protected CompilationUnitTypeOracleUpdater.TypeOracleBuildContext getContext(MethodArgNamesLookup argsLookup)
public static Class forName(String name) throws ClassNotFoundException
ClassNotFoundException
Copyright © 2018. All rights reserved.