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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddScopedEntity(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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TranslatorToCAst.WalkContext
addNameDecl, getCatchTarget, getCatchTarget
-
Constructor Details
-
RootContext
public RootContext()
-
-
Method Details
-
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)- Specified by:
getScopedEntitiesin interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T>
-
getNameDecls
- Specified by:
getNameDeclsin interfaceTranslatorToCAst.WalkContext<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- Specified by:
addScopedEntityin interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T>
-
cfg
Description copied from interface:TranslatorToCAst.WalkContextfor recording control-flow relationships among the CAst nodes- Specified by:
cfgin interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T>
-
pos
Description copied from interface:TranslatorToCAst.WalkContextfor recording source positions- Specified by:
posin interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T>
-
getNodeTypeMap
Description copied from interface:TranslatorToCAst.WalkContextfor recording types of nodes- Specified by:
getNodeTypeMapin interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T>
-
getContinueFor
Description copied from interface:TranslatorToCAst.WalkContextfor a 'continue' style goto, return the control flow target- Specified by:
getContinueForin interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T>
-
getBreakFor
Description copied from interface:TranslatorToCAst.WalkContextfor a 'break' style goto, return the control flow target- Specified by:
getBreakForin interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T>
-
top
- Specified by:
topin interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T>
-
getParent
- Specified by:
getParentin interfaceTranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>, T>
-