Class JDTJava2CAstTranslator<T extends CAstSourcePositionMap.Position>
java.lang.Object
com.ibm.wala.cast.java.translator.jdt.JDTJava2CAstTranslator<T>
- Direct Known Subclasses:
ECJSourceModuleTranslator.ECJJavaToCAstTranslator
public abstract class JDTJava2CAstTranslator<T extends CAstSourcePositionMap.Position>
extends Object
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected final class
protected static final class
static class
Default context functions.protected final class
class
protected final class
static class
static interface
Contains things needed by in the visit() of some nodes to process the nodes. -
Field Summary
Modifier and TypeFieldDescriptionprotected final org.eclipse.jdt.core.dom.AST
protected final org.eclipse.jdt.core.dom.CompilationUnit
protected final TranslatorToCAst.DoLoopTranslator
protected boolean
protected final org.eclipse.jdt.core.dom.ITypeBinding
protected final org.eclipse.jdt.core.dom.ITypeBinding
protected final org.eclipse.jdt.core.dom.ITypeBinding
protected final CAst
protected final JDTIdentityMapper
protected final org.eclipse.jdt.core.dom.ITypeBinding
protected final org.eclipse.jdt.core.dom.ITypeBinding
protected final JavaSourceLoaderImpl
protected final JDTTypeDictionary
protected final String
protected final org.eclipse.jdt.core.dom.ITypeBinding
protected final org.eclipse.jdt.core.dom.ITypeBinding
-
Constructor Summary
ConstructorDescriptionJDTJava2CAstTranslator
(JavaSourceLoaderImpl sourceLoader, org.eclipse.jdt.core.dom.CompilationUnit astRoot, String fullPath, boolean replicateForDoLoops) JDTJava2CAstTranslator
(JavaSourceLoaderImpl sourceLoader, org.eclipse.jdt.core.dom.CompilationUnit astRoot, String fullPath, boolean replicateForDoLoops, boolean dump) -
Method Summary
Modifier and TypeMethodDescriptionprotected CAstNode
makeNode
(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, org.eclipse.jdt.core.dom.ASTNode n, int kind) protected CAstNode
makeNode
(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, org.eclipse.jdt.core.dom.ASTNode n, int kind, CAstNode c) protected CAstNode
makeNode
(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, org.eclipse.jdt.core.dom.ASTNode n, int kind, CAstNode c1, CAstNode c2) protected CAstNode
makeNode
(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, org.eclipse.jdt.core.dom.ASTNode n, int kind, CAstNode c1, CAstNode c2, CAstNode c3) protected CAstNode
makeNode
(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, org.eclipse.jdt.core.dom.ASTNode n, int kind, CAstNode c1, CAstNode c2, CAstNode c3, CAstNode c4) protected CAstNode
makeNode
(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, org.eclipse.jdt.core.dom.ASTNode n, int kind, List<CAstNode> c) protected CAstNode
makeNode
(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, T pos, int kind, CAstNode c1, CAstNode c2, CAstNode c3) protected CAstNode
abstract T
makePosition
(int start, int end) makePosition
(org.eclipse.jdt.core.dom.ASTNode n) protected void
setPos
(JDTJava2CAstTranslator.WalkContext wc, CAstNode cn, org.eclipse.jdt.core.dom.ASTNode jdtNode)
-
Field Details
-
dump
protected boolean dump -
fFactory
-
ast
protected final org.eclipse.jdt.core.dom.AST ast -
fIdentityMapper
-
fTypeDict
-
fSourceLoader
-
fDivByZeroExcType
protected final org.eclipse.jdt.core.dom.ITypeBinding fDivByZeroExcType -
fNullPointerExcType
protected final org.eclipse.jdt.core.dom.ITypeBinding fNullPointerExcType -
fClassCastExcType
protected final org.eclipse.jdt.core.dom.ITypeBinding fClassCastExcType -
fRuntimeExcType
protected final org.eclipse.jdt.core.dom.ITypeBinding fRuntimeExcType -
NoClassDefFoundError
protected final org.eclipse.jdt.core.dom.ITypeBinding NoClassDefFoundError -
ExceptionInInitializerError
protected final org.eclipse.jdt.core.dom.ITypeBinding ExceptionInInitializerError -
OutOfMemoryError
protected final org.eclipse.jdt.core.dom.ITypeBinding OutOfMemoryError -
doLoopTranslator
-
fullPath
-
cu
protected final org.eclipse.jdt.core.dom.CompilationUnit cu
-
-
Constructor Details
-
JDTJava2CAstTranslator
public JDTJava2CAstTranslator(JavaSourceLoaderImpl sourceLoader, org.eclipse.jdt.core.dom.CompilationUnit astRoot, String fullPath, boolean replicateForDoLoops) -
JDTJava2CAstTranslator
public JDTJava2CAstTranslator(JavaSourceLoaderImpl sourceLoader, org.eclipse.jdt.core.dom.CompilationUnit astRoot, String fullPath, boolean replicateForDoLoops, boolean dump)
-
-
Method Details
-
translateToCAst
-
makeNode
protected CAstNode makeNode(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, org.eclipse.jdt.core.dom.ASTNode n, int kind) -
makeNode
protected CAstNode makeNode(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, org.eclipse.jdt.core.dom.ASTNode n, int kind, List<CAstNode> c) -
makeNode
-
makeNode
protected CAstNode makeNode(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, org.eclipse.jdt.core.dom.ASTNode n, int kind, CAstNode c1, CAstNode c2) -
makeNode
protected CAstNode makeNode(JDTJava2CAstTranslator.WalkContext wc, CAst Ast, org.eclipse.jdt.core.dom.ASTNode n, int kind, CAstNode c) -
makeNode
-
makeNode
-
makeNode
-
setPos
protected void setPos(JDTJava2CAstTranslator.WalkContext wc, CAstNode cn, org.eclipse.jdt.core.dom.ASTNode jdtNode) -
makePosition
-
makePosition
-