Class SubContext

java.lang.Object
com.sun.tools.javac.util.Context
com.google.errorprone.SubContext

public final class SubContext
extends com.sun.tools.javac.util.Context
A view on top of a Context allowing additional modifications to be added without affecting the underlying Context.
Author:
Louis Wasserman
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.sun.tools.javac.util.Context

    com.sun.tools.javac.util.Context.Factory<T extends Object>, com.sun.tools.javac.util.Context.Key<T extends Object>
  • Field Summary

    Fields inherited from class com.sun.tools.javac.util.Context

    ht
  • Constructor Summary

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

    Modifier and Type Method Description
    <T> T get​(com.sun.tools.javac.util.Context.Key<T> key)  
    <T> T get​(Class<T> clazz)  

    Methods inherited from class com.sun.tools.javac.util.Context

    dump, key, put, put, put, put

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
      Overrides:
      get in class com.sun.tools.javac.util.Context
    • get

      public <T> T get​(Class<T> clazz)
      Overrides:
      get in class com.sun.tools.javac.util.Context