private static class CompilerOptions.NullAliasTransformationHandler extends java.lang.Object implements CompilerOptions.AliasTransformationHandler
Modifier and Type | Class and Description |
---|---|
private static class |
CompilerOptions.NullAliasTransformationHandler.NullAliasTransformation |
Modifier and Type | Field and Description |
---|---|
private static CompilerOptions.AliasTransformation |
NULL_ALIAS_TRANSFORMATION |
Modifier | Constructor and Description |
---|---|
private |
NullAliasTransformationHandler() |
Modifier and Type | Method and Description |
---|---|
CompilerOptions.AliasTransformation |
logAliasTransformation(java.lang.String sourceFile,
SourcePosition<CompilerOptions.AliasTransformation> position)
Builds an AliasTransformation implementation and returns it to the
caller.
|
private static final CompilerOptions.AliasTransformation NULL_ALIAS_TRANSFORMATION
public CompilerOptions.AliasTransformation logAliasTransformation(java.lang.String sourceFile, SourcePosition<CompilerOptions.AliasTransformation> position)
CompilerOptions.AliasTransformationHandler
Callers are allowed to request multiple AliasTransformation instances for the same file, though it is expected that the first and last char values for multiple instances will not overlap.
This method is expected to have a side-effect of storing off the created AliasTransformation, which guarantees that invokers of this interface cannot leak AliasTransformation to this implementation that the implementor did not create
logAliasTransformation
in interface CompilerOptions.AliasTransformationHandler
sourceFile
- the source file the aliases re contained in.position
- the region of the source file associated with the
goog.scope call. The item of the SourcePosition is the returned
AliasTransformation