Class JDTJava2CAstTranslator.MethodContext
java.lang.Object
com.ibm.wala.cast.ir.translator.TranslatorToCAst.DelegatingContext<JDTJava2CAstTranslator.WalkContext,org.eclipse.jdt.core.dom.ASTNode>
com.ibm.wala.cast.java.translator.jdt.JDTJava2CAstTranslator.DelegatingContext
com.ibm.wala.cast.java.translator.jdt.JDTJava2CAstTranslator.MethodContext
- All Implemented Interfaces:
TranslatorToCAst.WalkContext<JDTJava2CAstTranslator.WalkContext,
,org.eclipse.jdt.core.dom.ASTNode> JDTJava2CAstTranslator.WalkContext
- Enclosing class:
JDTJava2CAstTranslator<T extends CAstSourcePositionMap.Position>
-
Field Summary
Fields inherited from class com.ibm.wala.cast.ir.translator.TranslatorToCAst.DelegatingContext
parent
-
Constructor Summary
ConstructorDescriptionMethodContext
(JDTJava2CAstTranslator.WalkContext parent, Map<CAstNode, CAstEntity> entities) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a name declaration to this context.void
addScopedEntity
(CAstNode node, CAstEntity entity) associate a child entity with a given CAstNode, e.g.cfg()
for recording control-flow relationships among the CAst nodesCollection
<Pair<org.eclipse.jdt.core.dom.ITypeBinding, Object>> getCatchTargets
(org.eclipse.jdt.core.dom.ITypeBinding label) for recording types of nodesboolean
pos()
for recording source positionsMethods inherited from class com.ibm.wala.cast.ir.translator.TranslatorToCAst.DelegatingContext
getParent, top
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
getBreakFor, getCatchTarget, getCatchTarget, getContinueFor, getParent, getScopedEntities, top
-
Constructor Details
-
MethodContext
-
-
Method Details
-
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. -
getNameDecls
-
getLabelMap
- Specified by:
getLabelMap
in interfaceJDTJava2CAstTranslator.WalkContext
- Overrides:
getLabelMap
in classJDTJava2CAstTranslator.DelegatingContext
-
cfg
Description copied from interface:TranslatorToCAst.WalkContext
for recording control-flow relationships among the CAst nodes -
addScopedEntity
Description copied from interface:TranslatorToCAst.WalkContext
associate a child entity with a given CAstNode, e.g. for a function declaration -
pos
Description copied from interface:TranslatorToCAst.WalkContext
for recording source positions -
getNodeTypeMap
Description copied from interface:TranslatorToCAst.WalkContext
for recording types of nodes -
getCatchTargets
public Collection<Pair<org.eclipse.jdt.core.dom.ITypeBinding,Object>> getCatchTargets(org.eclipse.jdt.core.dom.ITypeBinding label) - Specified by:
getCatchTargets
in interfaceJDTJava2CAstTranslator.WalkContext
- Overrides:
getCatchTargets
in classJDTJava2CAstTranslator.DelegatingContext
-
needLValue
public boolean needLValue()- Specified by:
needLValue
in interfaceJDTJava2CAstTranslator.WalkContext
- Overrides:
needLValue
in classJDTJava2CAstTranslator.DelegatingContext
-