Interface TranslatorToCAst
- All Known Subinterfaces:
JavaScriptTranslatorToCAst
- All Known Implementing Classes:
CAstRhinoTranslator
,NativeTranslatorToCAst
,RewritingTranslatorToCAst
,RhinoToAstTranslator
public interface TranslatorToCAst
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
static class
static class
static class
TranslatorToCAst.LoopContext<C extends TranslatorToCAst.WalkContext<C,
T>, T> static class
TranslatorToCAst.RootContext<C extends TranslatorToCAst.WalkContext<C,
T>, T> static class
static interface
TranslatorToCAst.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.Error
IOException
-
pushSourcePosition
default <X extends TranslatorToCAst.WalkContext<X,Y>, void pushSourcePositionY> (TranslatorToCAst.WalkContext<X, Y> context, CAstNode n, CAstSourcePositionMap.Position p)
-