Class JDTJava2CAstTranslator.DelegatingContext
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
- All Implemented Interfaces:
TranslatorToCAst.WalkContext<JDTJava2CAstTranslator.WalkContext,
,org.eclipse.jdt.core.dom.ASTNode> JDTJava2CAstTranslator.WalkContext
- Direct Known Subclasses:
JDTJava2CAstTranslator.MethodContext
- Enclosing class:
JDTJava2CAstTranslator<T extends CAstSourcePositionMap.Position>
public static class JDTJava2CAstTranslator.DelegatingContext
extends TranslatorToCAst.DelegatingContext<JDTJava2CAstTranslator.WalkContext,org.eclipse.jdt.core.dom.ASTNode>
implements JDTJava2CAstTranslator.WalkContext
Default context functions. When one context doesn't handle something, it the next one up does.
For example, there is only one source pos. mapping per MethodContext, so loop contexts delegate
it up.
-
Field Summary
Fields inherited from class com.ibm.wala.cast.ir.translator.TranslatorToCAst.DelegatingContext
parent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection
<Pair<org.eclipse.jdt.core.dom.ITypeBinding, Object>> getCatchTargets
(org.eclipse.jdt.core.dom.ITypeBinding type) boolean
Methods 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
addNameDecl, addScopedEntity, cfg, getBreakFor, getCatchTarget, getCatchTarget, getContinueFor, getNameDecls, getNodeTypeMap, getParent, getScopedEntities, pos, top
-
Constructor Details
-
DelegatingContext
-
-
Method Details
-
getCatchTargets
public Collection<Pair<org.eclipse.jdt.core.dom.ITypeBinding,Object>> getCatchTargets(org.eclipse.jdt.core.dom.ITypeBinding type) - Specified by:
getCatchTargets
in interfaceJDTJava2CAstTranslator.WalkContext
-
getLabelMap
- Specified by:
getLabelMap
in interfaceJDTJava2CAstTranslator.WalkContext
-
needLValue
public boolean needLValue()- Specified by:
needLValue
in interfaceJDTJava2CAstTranslator.WalkContext
-