Class TranslatorToCAst.RootContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
java.lang.Object
com.ibm.wala.cast.ir.translator.TranslatorToCAst.RootContext<C,T>
- All Implemented Interfaces:
TranslatorToCAst.WalkContext<C,
T>
- Direct Known Subclasses:
JavaScriptTranslatorToCAst.RootContext
,JDTJava2CAstTranslator.RootContext
- Enclosing interface:
TranslatorToCAst
public static class TranslatorToCAst.RootContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
extends Object
implements TranslatorToCAst.WalkContext<C,T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addScopedEntity
(CAstNode newNode, CAstEntity visit) associate a child entity with a given CAstNode, e.g.cfg()
for recording control-flow relationships among the CAst nodesgetBreakFor
(String label) for a 'break' style goto, return the control flow targetgetContinueFor
(String label) for a 'continue' style goto, return the control flow targetfor recording types of nodesget a mapping from CAstNodes to the scoped entities (e.g.pos()
for recording source positionstop()
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, getCatchTarget, getCatchTarget
-
Constructor Details
-
RootContext
public RootContext()
-
-
Method Details
-
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)- Specified by:
getScopedEntities
in interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,
T>, T>
-
getNameDecls
- Specified by:
getNameDecls
in interfaceTranslatorToCAst.WalkContext<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- Specified by:
addScopedEntity
in interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,
T>, T>
-
cfg
Description copied from interface:TranslatorToCAst.WalkContext
for recording control-flow relationships among the CAst nodes- Specified by:
cfg
in interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,
T>, T>
-
pos
Description copied from interface:TranslatorToCAst.WalkContext
for recording source positions- Specified by:
pos
in interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,
T>, T>
-
getNodeTypeMap
Description copied from interface:TranslatorToCAst.WalkContext
for recording types of nodes- Specified by:
getNodeTypeMap
in interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,
T>, T>
-
getContinueFor
Description copied from interface:TranslatorToCAst.WalkContext
for a 'continue' style goto, return the control flow target- Specified by:
getContinueFor
in interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,
T>, T>
-
getBreakFor
Description copied from interface:TranslatorToCAst.WalkContext
for a 'break' style goto, return the control flow target- Specified by:
getBreakFor
in interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,
T>, T>
-
top
- Specified by:
top
in interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,
T>, T>
-
getParent
- Specified by:
getParent
in interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,
T>, T>
-