Interface JDTJava2CAstTranslator.WalkContext
- All Superinterfaces:
TranslatorToCAst.WalkContext<JDTJava2CAstTranslator.WalkContext, org.eclipse.jdt.core.dom.ASTNode>
- All Known Implementing Classes:
JDTJava2CAstTranslator.DelegatingContext, JDTJava2CAstTranslator.MethodContext, JDTJava2CAstTranslator.RootContext
- Enclosing class:
JDTJava2CAstTranslator<T extends CAstSourcePositionMap.Position>
public static interface JDTJava2CAstTranslator.WalkContext
extends TranslatorToCAst.WalkContext<JDTJava2CAstTranslator.WalkContext, org.eclipse.jdt.core.dom.ASTNode>
Contains things needed by in the visit() of some nodes to process the nodes. For example, pos()
contains the source position mapping which each node registers
-
Method Summary
Modifier and TypeMethodDescriptionCollection<Pair<org.eclipse.jdt.core.dom.ITypeBinding, Object>> getCatchTargets(org.eclipse.jdt.core.dom.ITypeBinding type) booleanMethods inherited from interface TranslatorToCAst.WalkContext
addNameDecl, addScopedEntity, cfg, getBreakFor, getCatchTarget, getCatchTarget, getContinueFor, getNameDecls, getNodeTypeMap, getParent, getScopedEntities, pos, topModifier 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 nodesTranslatorToCAst.WalkContext<JDTJava2CAstTranslator.WalkContext, org.eclipse.jdt.core.dom.ASTNode> default Map<CAstNode, Collection<CAstEntity>> get a mapping from CAstNodes to the scoped entities (e.g.default CAstSourcePositionRecorderpos()for recording source positionsdefault org.eclipse.jdt.core.dom.ASTNodetop()
-
Method Details
-
getCatchTargets
Collection<Pair<org.eclipse.jdt.core.dom.ITypeBinding, Object>> getCatchTargets(org.eclipse.jdt.core.dom.ITypeBinding type) -
getLabelMap
-
needLValue
boolean needLValue()
-