Interface TranslatorToCAst
- All Known Subinterfaces:
JavaScriptTranslatorToCAst
- All Known Implementing Classes:
CAstRhinoTranslator, NativeTranslatorToCAst, RewritingTranslatorToCAst, RhinoToAstTranslator
public interface TranslatorToCAst
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classTranslatorToCAst.BreakContext<C extends TranslatorToCAst.WalkContext<C,T>, T> static classstatic classstatic classstatic classTranslatorToCAst.FunctionContext<C extends TranslatorToCAst.WalkContext<C,T>, T> static classTranslatorToCAst.LoopContext<C extends TranslatorToCAst.WalkContext<C,T>, T> static classTranslatorToCAst.RootContext<C extends TranslatorToCAst.WalkContext<C,T>, T> static classTranslatorToCAst.TryCatchContext<C extends TranslatorToCAst.WalkContext<C,T>, T> static interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T> -
Method Summary
Modifier and TypeMethodDescription<C extends CAstRewriter.RewriteContext<K>, K extends CAstRewriter.CopyKey<K>>
voidaddRewriter(CAstRewriterFactory<C, K> factory, boolean prepend) default <X extends TranslatorToCAst.WalkContext<X,Y>, Y>
voidpushSourcePosition(TranslatorToCAst.WalkContext<X, Y> context, CAstNode n, CAstSourcePositionMap.Position p)
-
Method Details
-
addRewriter
<C extends CAstRewriter.RewriteContext<K>, K extends CAstRewriter.CopyKey<K>> void addRewriter(CAstRewriterFactory<C, K> factory, boolean prepend) -
translateToCAst
- Throws:
TranslatorToCAst.ErrorIOException
-
pushSourcePosition
default <X extends TranslatorToCAst.WalkContext<X,Y>, Y> void pushSourcePosition(TranslatorToCAst.WalkContext<X, Y> context, CAstNode n, CAstSourcePositionMap.Position p)
-