Class TypedAstDeserializer.DeserializedAst

  • Enclosing class:
    TypedAstDeserializer

    public abstract static class TypedAstDeserializer.DeserializedAst
    extends java.lang.Object
    The 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 AST
      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 file
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeserializedAst

        public DeserializedAst()
    • 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 file

        The 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