Class SubContext

java.lang.Object
com.google.errorprone.SubContext

public final class SubContext extends Object
A view on top of a Context allowing additional modifications to be added without affecting the underlying Context.
Author:
Louis Wasserman
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<com.sun.tools.javac.util.Context.Key<?>, Object>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SubContext(com.sun.tools.javac.util.Context base)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    <T> T
    get(com.sun.tools.javac.util.Context.Key<T> key)
     
    <T> T
    get(Class<T> clazz)
     
    protected <T> com.sun.tools.javac.util.Context.Key<T>
    key(Class<T> arg0)
     
    <T> void
    put(com.sun.tools.javac.util.Context.Key<T> arg0, com.sun.tools.javac.util.Context.Factory<T> arg1)
     
    <T> void
    put(com.sun.tools.javac.util.Context.Key<T> arg0, T arg1)
     
    <T> void
    put(Class<T> arg0, com.sun.tools.javac.util.Context.Factory<T> arg1)
     
    <T> void
    put(Class<T> arg0, T arg1)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ht

      protected final Map<com.sun.tools.javac.util.Context.Key<?>, Object> ht
  • Constructor Details

    • SubContext

      public SubContext(com.sun.tools.javac.util.Context base)
  • Method Details

    • get

      public <T> T get(com.sun.tools.javac.util.Context.Key<T> key)
    • get

      public <T> T get(Class<T> clazz)
    • put

      public <T> void put(com.sun.tools.javac.util.Context.Key<T> arg0, com.sun.tools.javac.util.Context.Factory<T> arg1)
    • put

      public <T> void put(com.sun.tools.javac.util.Context.Key<T> arg0, T arg1)
    • key

      protected <T> com.sun.tools.javac.util.Context.Key<T> key(Class<T> arg0)
    • put

      public <T> void put(Class<T> arg0, T arg1)
    • put

      public <T> void put(Class<T> arg0, com.sun.tools.javac.util.Context.Factory<T> arg1)
    • dump

      public void dump()