com.ibm.wala.cast.java.translator.jdt
Class JDTJava2CAstTranslator.DelegatingContext

java.lang.Object
  extended by com.ibm.wala.cast.java.translator.jdt.JDTJava2CAstTranslator.DelegatingContext
All Implemented Interfaces:
JDTJava2CAstTranslator.WalkContext
Direct Known Subclasses:
JDTJava2CAstTranslator.MethodContext
Enclosing class:
JDTJava2CAstTranslator

public static class JDTJava2CAstTranslator.DelegatingContext
extends java.lang.Object
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
protected  JDTJava2CAstTranslator.WalkContext parent
           
 
Constructor Summary
JDTJava2CAstTranslator.DelegatingContext(JDTJava2CAstTranslator.WalkContext parent)
           
 
Method Summary
 void addScopedEntity(CAstNode newNode, CAstEntity visit)
           
 CAstControlFlowRecorder cfg()
           
 org.eclipse.jdt.core.dom.ASTNode getBreakFor(java.lang.String label)
           
 java.util.Collection<Pair<org.eclipse.jdt.core.dom.ITypeBinding,java.lang.Object>> getCatchTargets(org.eclipse.jdt.core.dom.ITypeBinding type)
           
 org.eclipse.jdt.core.dom.ASTNode getContinueFor(java.lang.String label)
           
 java.util.Map<org.eclipse.jdt.core.dom.ASTNode,java.lang.String> getLabelMap()
           
 CAstNodeTypeMapRecorder getNodeTypeMap()
           
 boolean needLValue()
           
 CAstSourcePositionRecorder pos()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected JDTJava2CAstTranslator.WalkContext parent
Constructor Detail

JDTJava2CAstTranslator.DelegatingContext

public JDTJava2CAstTranslator.DelegatingContext(JDTJava2CAstTranslator.WalkContext parent)
Method Detail

cfg

public CAstControlFlowRecorder cfg()
Specified by:
cfg in interface JDTJava2CAstTranslator.WalkContext

pos

public CAstSourcePositionRecorder pos()
Specified by:
pos in interface JDTJava2CAstTranslator.WalkContext

getNodeTypeMap

public CAstNodeTypeMapRecorder getNodeTypeMap()
Specified by:
getNodeTypeMap in interface JDTJava2CAstTranslator.WalkContext

getCatchTargets

public java.util.Collection<Pair<org.eclipse.jdt.core.dom.ITypeBinding,java.lang.Object>> getCatchTargets(org.eclipse.jdt.core.dom.ITypeBinding type)
Specified by:
getCatchTargets in interface JDTJava2CAstTranslator.WalkContext

addScopedEntity

public void addScopedEntity(CAstNode newNode,
                            CAstEntity visit)
Specified by:
addScopedEntity in interface JDTJava2CAstTranslator.WalkContext

getLabelMap

public java.util.Map<org.eclipse.jdt.core.dom.ASTNode,java.lang.String> getLabelMap()
Specified by:
getLabelMap in interface JDTJava2CAstTranslator.WalkContext

getContinueFor

public org.eclipse.jdt.core.dom.ASTNode getContinueFor(java.lang.String label)
Specified by:
getContinueFor in interface JDTJava2CAstTranslator.WalkContext

getBreakFor

public org.eclipse.jdt.core.dom.ASTNode getBreakFor(java.lang.String label)
Specified by:
getBreakFor in interface JDTJava2CAstTranslator.WalkContext

needLValue

public boolean needLValue()
Specified by:
needLValue in interface JDTJava2CAstTranslator.WalkContext