Class JavaScriptTranslatorToCAst.RootContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,T>,T>
java.lang.Object
com.ibm.wala.cast.ir.translator.TranslatorToCAst.RootContext<C,T>
com.ibm.wala.cast.js.translator.JavaScriptTranslatorToCAst.RootContext<C,T>
- All Implemented Interfaces:
TranslatorToCAst.WalkContext<C,
,T> JavaScriptTranslatorToCAst.WalkContext<C,
T>
- Enclosing interface:
JavaScriptTranslatorToCAst
public static class JavaScriptTranslatorToCAst.RootContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,T>,T>
extends TranslatorToCAst.RootContext<C,T>
implements JavaScriptTranslatorToCAst.WalkContext<C,T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a name declaration to this context.void
copyOperation
(T from, T to) boolean
foundMemberOperation
(T node) script()
int
setOperation
(T node) top()
Methods inherited from class com.ibm.wala.cast.ir.translator.TranslatorToCAst.RootContext
addScopedEntity, cfg, getBreakFor, getContinueFor, getNodeTypeMap, getScopedEntities, pos
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.wala.cast.ir.translator.TranslatorToCAst.WalkContext
addScopedEntity, cfg, getBreakFor, getCatchTarget, getContinueFor, getNodeTypeMap, getScopedEntities, pos
-
Constructor Details
-
RootContext
public RootContext()
-
-
Method Details
-
getParent
- Specified by:
getParent
in interfaceJavaScriptTranslatorToCAst.WalkContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T> - Specified by:
getParent
in interfaceTranslatorToCAst.WalkContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T> - Overrides:
getParent
in classTranslatorToCAst.RootContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T>
-
script
- Specified by:
script
in interfaceJavaScriptTranslatorToCAst.WalkContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T>
-
top
- Specified by:
top
in interfaceTranslatorToCAst.WalkContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T> - Overrides:
top
in classTranslatorToCAst.RootContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T>
-
addNameDecl
Description copied from interface:TranslatorToCAst.WalkContext
Add a name declaration to this context. For variables or constants, n should be aCAstNode.DECL_STMT
, and the initialization of the variable (if any) may occur in a separate assignment. For functions, n should be aCAstNode.FUNCTION_STMT
, including the function body.- Specified by:
addNameDecl
in interfaceTranslatorToCAst.WalkContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T>
-
getNameDecls
- Specified by:
getNameDecls
in interfaceTranslatorToCAst.WalkContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T> - Overrides:
getNameDecls
in classTranslatorToCAst.RootContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T>
-
getCatchTarget
- Specified by:
getCatchTarget
in interfaceTranslatorToCAst.WalkContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T>
-
setOperation
- Specified by:
setOperation
in interfaceJavaScriptTranslatorToCAst.WalkContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T>
-
foundMemberOperation
- Specified by:
foundMemberOperation
in interfaceJavaScriptTranslatorToCAst.WalkContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T>
-
copyOperation
- Specified by:
copyOperation
in interfaceJavaScriptTranslatorToCAst.WalkContext<C extends JavaScriptTranslatorToCAst.WalkContext<C,
T>, T>
-