Class TranslatorToCAst.FunctionContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
java.lang.Object
com.ibm.wala.cast.ir.translator.TranslatorToCAst.DelegatingContext<C,T>
com.ibm.wala.cast.ir.translator.TranslatorToCAst.FunctionContext<C,T>
- All Implemented Interfaces:
TranslatorToCAst.WalkContext<C,
T>
- Direct Known Subclasses:
JavaScriptTranslatorToCAst.FunctionContext
- Enclosing interface:
TranslatorToCAst
public static class TranslatorToCAst.FunctionContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
extends TranslatorToCAst.DelegatingContext<C,T>
-
Field Summary
Fields inherited from class com.ibm.wala.cast.ir.translator.TranslatorToCAst.DelegatingContext
parent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addScopedEntity
(CAstNode construct, CAstEntity e) associate a child entity with a given CAstNode, e.g.cfg()
for recording control-flow relationships among the CAst nodesget a mapping from CAstNodes to the scoped entities (e.g.pos()
for recording source positionstop()
Methods inherited from class com.ibm.wala.cast.ir.translator.TranslatorToCAst.DelegatingContext
getParent
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
addNameDecl, getBreakFor, getCatchTarget, getCatchTarget, getContinueFor, getNameDecls, getNodeTypeMap
-
Constructor Details
-
FunctionContext
-
-
Method Details
-
top
- Specified by:
top
in interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,
T>, T> - Overrides:
top
in classTranslatorToCAst.DelegatingContext<C extends TranslatorToCAst.WalkContext<C,
T>, T>
-
addScopedEntity
Description copied from interface:TranslatorToCAst.WalkContext
associate a child entity with a given CAstNode, e.g. for a function declaration -
getScopedEntities
Description copied from interface:TranslatorToCAst.WalkContext
get a mapping from CAstNodes to the scoped entities (e.g. functions or local classes) introduced by those nodes. Also mapsnull
to those entities not corresponding to any node (e.g nested classes) -
cfg
Description copied from interface:TranslatorToCAst.WalkContext
for recording control-flow relationships among the CAst nodes -
pos
Description copied from interface:TranslatorToCAst.WalkContext
for recording source positions
-