Class JDTJava2CAstTranslator.RootContext
java.lang.Object
com.ibm.wala.cast.ir.translator.TranslatorToCAst.RootContext<JDTJava2CAstTranslator.WalkContext, org.eclipse.jdt.core.dom.ASTNode>
com.ibm.wala.cast.java.translator.jdt.JDTJava2CAstTranslator.RootContext
- All Implemented Interfaces:
TranslatorToCAst.WalkContext<JDTJava2CAstTranslator.WalkContext, org.eclipse.jdt.core.dom.ASTNode>, JDTJava2CAstTranslator.WalkContext
- Enclosing class:
JDTJava2CAstTranslator<T extends CAstSourcePositionMap.Position>
public static class JDTJava2CAstTranslator.RootContext
extends TranslatorToCAst.RootContext<JDTJava2CAstTranslator.WalkContext, org.eclipse.jdt.core.dom.ASTNode>
implements JDTJava2CAstTranslator.WalkContext
-
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.RootContext
addScopedEntity, cfg, getBreakFor, getContinueFor, getNameDecls, getNodeTypeMap, getParent, getScopedEntities, pos, topModifier 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 nodesorg.eclipse.jdt.core.dom.ASTNodegetBreakFor(String label) for a 'break' style goto, return the control flow targetorg.eclipse.jdt.core.dom.ASTNodegetContinueFor(String label) for a 'continue' style goto, return the control flow targetfor recording types of nodesTranslatorToCAst.WalkContext<JDTJava2CAstTranslator.WalkContext, org.eclipse.jdt.core.dom.ASTNode> get a mapping from CAstNodes to the scoped entities (e.g.pos()for recording source positionsorg.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, getCatchTarget, getCatchTarget
-
Constructor Details
-
RootContext
public RootContext()
-
-
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
-