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, topModifier and TypeMethodDescriptionTranslatorToCAst.WalkContext<JDTJava2CAstTranslator.WalkContext, org.eclipse.jdt.core.dom.ASTNode> org.eclipse.jdt.core.dom.ASTNodetop()Methods 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, getScopedEntities, posModifier and TypeMethodDescriptiondefault voidAdd a name declaration to this context.default voidaddScopedEntity(CAstNode newNode, CAstEntity visit) associate a child entity with a given CAstNode, e.g.default CAstControlFlowRecordercfg()for recording control-flow relationships among the CAst nodesdefault org.eclipse.jdt.core.dom.ASTNodegetBreakFor(String label) for a 'break' style goto, return the control flow targetdefault CAstNodedefault CAstNodedefault org.eclipse.jdt.core.dom.ASTNodegetContinueFor(String label) for a 'continue' style goto, return the control flow targetdefault CAstNodeTypeMapRecorderfor recording types of nodesdefault Map<CAstNode, Collection<CAstEntity>> get a mapping from CAstNodes to the scoped entities (e.g.default CAstSourcePositionRecorderpos()for recording source positions
-
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
-