Package manifold.internal.javac
Class ManTransTypes
- java.lang.Object
-
- com.sun.tools.javac.tree.JCTree.Visitor
-
- com.sun.tools.javac.tree.TreeTranslator
-
- com.sun.tools.javac.comp.TransTypes
-
- manifold.internal.javac.ManTransTypes
-
public class ManTransTypes extends com.sun.tools.javac.comp.TransTypes
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.sun.tools.javac.comp.TransTypesinstance(com.sun.tools.javac.util.Context ctx)booleanisTranslating()com.sun.tools.javac.tree.JCTreetranslateTopLevelClass(com.sun.tools.javac.tree.JCTree cdef, com.sun.tools.javac.tree.TreeMaker make)Override to keep track of when/if translate() is in scope, if ManTypes#memberType() should not try to substitute the qualifier type for @Self because the qualifier is not really a call site, rather it is the declaring class of the method being checked for bridge method possibilities etc.voidvisitIdent(com.sun.tools.javac.tree.JCTree.JCIdent tree)-
Methods inherited from class com.sun.tools.javac.comp.TransTypes
coerce, translate, translate, translateArgs, visitAnnotatedType, visitAnnotation, visitApply, visitAssert, visitAssign, visitAssignop, visitBinary, visitCase, visitClassDef, visitConditional, visitDoLoop, visitExec, visitForeachLoop, visitForLoop, visitIf, visitIndexed, visitLambda, visitMethodDef, visitNewArray, visitNewClass, visitParens, visitReference, visitReturn, visitSelect, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeApply, visitTypeArray, visitTypeCast, visitTypeIntersection, visitTypeTest, visitUnary, visitVarDef, visitWhileLoop
-
Methods inherited from class com.sun.tools.javac.tree.TreeTranslator
translate, translate, translateAnnotations, translateCases, translateCatchers, translateTypeParams, translateVarDefs, visitBlock, visitBreak, visitCatch, visitContinue, visitErroneous, visitImport, visitLabelled, visitLetExpr, visitLiteral, visitModifiers, visitPackageDef, visitSkip, visitTopLevel, visitTree, visitTypeBoundKind, visitTypeIdent, visitTypeParameter, visitTypeUnion, visitWildcard
-
-
-
-
Method Detail
-
instance
public static com.sun.tools.javac.comp.TransTypes instance(com.sun.tools.javac.util.Context ctx)
-
translateTopLevelClass
public com.sun.tools.javac.tree.JCTree translateTopLevelClass(com.sun.tools.javac.tree.JCTree cdef, com.sun.tools.javac.tree.TreeMaker make)Override to keep track of when/if translate() is in scope, if ManTypes#memberType() should not try to substitute the qualifier type for @Self because the qualifier is not really a call site, rather it is the declaring class of the method being checked for bridge method possibilities etc. Thus we need to let the normal signature flow through.- Overrides:
translateTopLevelClassin classcom.sun.tools.javac.comp.TransTypes
-
isTranslating
public boolean isTranslating()
-
visitIdent
public void visitIdent(com.sun.tools.javac.tree.JCTree.JCIdent tree)
- Overrides:
visitIdentin classcom.sun.tools.javac.comp.TransTypes
-
-