Class TypedAstDeserializer.DeserializedAst
- java.lang.Object
-
- com.google.javascript.jscomp.serialization.TypedAstDeserializer.DeserializedAst
-
- Enclosing class:
- TypedAstDeserializer
public abstract static class TypedAstDeserializer.DeserializedAst extends java.lang.ObjectThe result of deserializing a TypedAst.List
-
-
Constructor Summary
Constructors Constructor Description DeserializedAst()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract com.google.common.base.Optional<ColorRegistry>getColorRegistry()The built ColorRegistry.abstract @Nullable com.google.common.collect.ImmutableSet<java.lang.String>getExternProperties()Returns a list of all known extern properties, including properties that were present in type annotations in source code but not serialized on the ASTabstract java.util.concurrent.ConcurrentMap<SourceFile,java.util.function.Supplier<Node>>getFilesystem()Maps from SourceFile to a lazy deserializer of the SCRIPT node for that file
-
-
-
Method Detail
-
getFilesystem
public abstract java.util.concurrent.ConcurrentMap<SourceFile,java.util.function.Supplier<Node>> getFilesystem()
Maps from SourceFile to a lazy deserializer of the SCRIPT node for that fileThe supplier creates a new Node whenever called (but the results should be .equals)
-
getColorRegistry
public abstract com.google.common.base.Optional<ColorRegistry> getColorRegistry()
The built ColorRegistry.Note that this is absent if either a)
TypedAstDeserializer#deserializeRuntimeLibraries(AbstractCompiler, SourceFile, ColorPool.Builder, InputStream)was called, as this sort of deserialization does not build a complete AST + colors, just a shard of it, or b) type information was not requested.
-
getExternProperties
public abstract @Nullable com.google.common.collect.ImmutableSet<java.lang.String> getExternProperties()
Returns a list of all known extern properties, including properties that were present in type annotations in source code but not serialized on the AST
-
-