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 TranslatorToCAst.DelegatingContext
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<Pair<org.eclipse.jdt.core.dom.ITypeBinding, Object>> getCatchTargets(org.eclipse.jdt.core.dom.ITypeBinding type) booleanMethods inherited from class TranslatorToCAst.DelegatingContext
getParent, topMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
getCatchTargetsin interfaceJDTJava2CAstTranslator.WalkContext
-
getLabelMap
- Specified by:
getLabelMapin interfaceJDTJava2CAstTranslator.WalkContext
-
needLValue
public boolean needLValue()- Specified by:
needLValuein interfaceJDTJava2CAstTranslator.WalkContext
-