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 TranslatorToCAst.DelegatingContext
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddScopedEntity(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 TranslatorToCAst.DelegatingContext
getParentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TranslatorToCAst.WalkContext
addNameDecl, getBreakFor, getCatchTarget, getCatchTarget, getContinueFor, getNameDecls, getNodeTypeMap
-
Constructor Details
-
FunctionContext
-
-
Method Details
-
top
- Specified by:
topin interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T> - Overrides:
topin classTranslatorToCAst.DelegatingContext<C extends TranslatorToCAst.WalkContext<C,T>, T>
-
addScopedEntity
Description copied from interface:TranslatorToCAst.WalkContextassociate a child entity with a given CAstNode, e.g. for a function declaration -
getScopedEntities
Description copied from interface:TranslatorToCAst.WalkContextget a mapping from CAstNodes to the scoped entities (e.g. functions or local classes) introduced by those nodes. Also mapsnullto those entities not corresponding to any node (e.g nested classes) -
cfg
Description copied from interface:TranslatorToCAst.WalkContextfor recording control-flow relationships among the CAst nodes -
pos
Description copied from interface:TranslatorToCAst.WalkContextfor recording source positions
-