public class JDT2CAstUtils
extends java.lang.Object
| Constructor and Description |
|---|
JDT2CAstUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
defaultValueForType(org.eclipse.jdt.core.dom.ITypeBinding type)
If isLongOrLess(type), returns Integer(0).
|
static org.eclipse.jdt.core.dom.ITypeBinding |
getDeclaringClassOfNode(org.eclipse.jdt.core.dom.ASTNode n) |
static org.eclipse.jdt.core.dom.ITypeBinding |
getErasedType(org.eclipse.jdt.core.dom.ITypeBinding returnType,
org.eclipse.jdt.core.dom.AST ast)
If a type variable, return the bound (getTypeVariablesBase()).
|
static java.util.Collection<org.eclipse.jdt.core.dom.IMethodBinding> |
getOverriddenMethod(org.eclipse.jdt.core.dom.IMethodBinding met) |
static org.eclipse.jdt.core.dom.ITypeBinding |
getTypesVariablesBase(org.eclipse.jdt.core.dom.ITypeBinding returnType,
org.eclipse.jdt.core.dom.AST ast) |
static boolean |
isLongOrLess(org.eclipse.jdt.core.dom.ITypeBinding type)
Returns true if type is char, byte, short, int, or long.
|
static com.ibm.wala.cast.tree.impl.CAstOperator |
mapAssignOperator(org.eclipse.jdt.core.dom.Assignment.Operator op) |
static org.eclipse.jdt.core.dom.InfixExpression.Operator |
mapAssignOperatorToInfixOperator(org.eclipse.jdt.core.dom.Assignment.Operator op) |
protected static com.ibm.wala.cast.tree.impl.CAstOperator |
mapBinaryOpcode(org.eclipse.jdt.core.dom.InfixExpression.Operator operator) |
static java.util.Collection<com.ibm.wala.cast.tree.CAstQualifier> |
mapModifiersToQualifiers(int modifiers,
boolean isInterface,
boolean isAnnotation) |
static org.eclipse.jdt.core.dom.ITypeBinding |
promoteTypes(org.eclipse.jdt.core.dom.ITypeBinding t1,
org.eclipse.jdt.core.dom.ITypeBinding t2,
org.eclipse.jdt.core.dom.AST ast) |
static boolean |
sameErasedSignatureAndReturnType(org.eclipse.jdt.core.dom.IMethodBinding met1,
org.eclipse.jdt.core.dom.IMethodBinding met2) |
public static java.util.Collection<com.ibm.wala.cast.tree.CAstQualifier> mapModifiersToQualifiers(int modifiers,
boolean isInterface,
boolean isAnnotation)
public static com.ibm.wala.cast.tree.impl.CAstOperator mapAssignOperator(org.eclipse.jdt.core.dom.Assignment.Operator op)
protected static com.ibm.wala.cast.tree.impl.CAstOperator mapBinaryOpcode(org.eclipse.jdt.core.dom.InfixExpression.Operator operator)
public static boolean isLongOrLess(org.eclipse.jdt.core.dom.ITypeBinding type)
public static java.lang.Object defaultValueForType(org.eclipse.jdt.core.dom.ITypeBinding type)
public static org.eclipse.jdt.core.dom.ITypeBinding promoteTypes(org.eclipse.jdt.core.dom.ITypeBinding t1,
org.eclipse.jdt.core.dom.ITypeBinding t2,
org.eclipse.jdt.core.dom.AST ast)
public static org.eclipse.jdt.core.dom.ITypeBinding getDeclaringClassOfNode(org.eclipse.jdt.core.dom.ASTNode n)
public static org.eclipse.jdt.core.dom.ITypeBinding getErasedType(org.eclipse.jdt.core.dom.ITypeBinding returnType,
org.eclipse.jdt.core.dom.AST ast)
public static org.eclipse.jdt.core.dom.ITypeBinding getTypesVariablesBase(org.eclipse.jdt.core.dom.ITypeBinding returnType,
org.eclipse.jdt.core.dom.AST ast)
public static org.eclipse.jdt.core.dom.InfixExpression.Operator mapAssignOperatorToInfixOperator(org.eclipse.jdt.core.dom.Assignment.Operator op)
public static java.util.Collection<org.eclipse.jdt.core.dom.IMethodBinding> getOverriddenMethod(org.eclipse.jdt.core.dom.IMethodBinding met)
public static boolean sameErasedSignatureAndReturnType(org.eclipse.jdt.core.dom.IMethodBinding met1,
org.eclipse.jdt.core.dom.IMethodBinding met2)