Class Inliner


  • public final class Inliner
    extends Object
    A context representing all the dependencies necessary to reconstruct a pretty-printable source tree from a UTree based on a set of substitutions.
    Author:
    Louis Wasserman
    • Field Detail

      • bindings

        public final Bindings bindings
    • Constructor Detail

      • Inliner

        public Inliner​(com.sun.tools.javac.util.Context context,
                       Bindings bindings)
    • Method Detail

      • addImport

        public void addImport​(String qualifiedImport)
      • addStaticImport

        public void addStaticImport​(String qualifiedImport)
      • getContext

        public com.sun.tools.javac.util.Context getContext()
      • types

        public com.sun.tools.javac.code.Types types()
      • symtab

        public com.sun.tools.javac.code.Symtab symtab()
      • enter

        public com.sun.tools.javac.comp.Enter enter()
      • names

        public com.sun.tools.javac.util.Names names()
      • maker

        public com.sun.tools.javac.tree.TreeMaker maker()
      • infer

        public com.sun.tools.javac.comp.Infer infer()
      • asName

        public com.sun.tools.javac.util.Name asName​(CharSequence str)
      • inlineAsTree

        public com.sun.tools.javac.tree.JCTree.JCExpression inlineAsTree​(com.sun.tools.javac.code.Type type)
        Inlines the syntax tree representing the specified type.
      • getBinding

        public <V> V getBinding​(Bindings.Key<V> key)
      • getOptionalBinding

        public <V> com.google.common.base.Optional<V> getOptionalBinding​(Bindings.Key<V> key)
      • getImportsToAdd

        public com.google.common.collect.ImmutableSet<String> getImportsToAdd()
      • getStaticImportsToAdd

        public com.google.common.collect.ImmutableSet<String> getStaticImportsToAdd()