Search in sources :

Example 6 with TypeNameDecider

use of org.autorefactor.refactoring.TypeNameDecider in project AutoRefactor by JnRouvignac.

the class CFGBuilder method newException.

private ITypeBinding newException(Expression node, String fullyQualifiedName) {
    ITypeBinding typeBinding = typeBindingsCache.get(fullyQualifiedName);
    if (typeBinding == null) {
        typeBinding = new TypeNameDecider(node).resolveTypeBinding(fullyQualifiedName);
        typeBindingsCache.put(typeBinding.getQualifiedName(), typeBinding);
    }
    return typeBinding;
}
Also used : ITypeBinding(org.eclipse.jdt.core.dom.ITypeBinding) TypeNameDecider(org.autorefactor.refactoring.TypeNameDecider)

Aggregations

TypeNameDecider (org.autorefactor.refactoring.TypeNameDecider)6 ITypeBinding (org.eclipse.jdt.core.dom.ITypeBinding)5 Type (org.eclipse.jdt.core.dom.Type)4 ASTBuilder (org.autorefactor.refactoring.ASTBuilder)3 ASTHelper.hasType (org.autorefactor.refactoring.ASTHelper.hasType)3 Refactorings (org.autorefactor.refactoring.Refactorings)2 Variable (org.autorefactor.refactoring.Variable)2 VariableDeclarationStatement (org.eclipse.jdt.core.dom.VariableDeclarationStatement)2 Block (org.eclipse.jdt.core.dom.Block)1 Expression (org.eclipse.jdt.core.dom.Expression)1 ExpressionStatement (org.eclipse.jdt.core.dom.ExpressionStatement)1 FieldAccess (org.eclipse.jdt.core.dom.FieldAccess)1 IfStatement (org.eclipse.jdt.core.dom.IfStatement)1 InfixExpression (org.eclipse.jdt.core.dom.InfixExpression)1 MethodInvocation (org.eclipse.jdt.core.dom.MethodInvocation)1 ParameterizedType (org.eclipse.jdt.core.dom.ParameterizedType)1 ReturnStatement (org.eclipse.jdt.core.dom.ReturnStatement)1 SingleVariableDeclaration (org.eclipse.jdt.core.dom.SingleVariableDeclaration)1 Statement (org.eclipse.jdt.core.dom.Statement)1 SwitchStatement (org.eclipse.jdt.core.dom.SwitchStatement)1