Example usage for org.eclipse.jdt.core.dom TypeLiteral resolveTypeBinding

List of usage examples for org.eclipse.jdt.core.dom TypeLiteral resolveTypeBinding

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom TypeLiteral resolveTypeBinding.

Prototype

public final ITypeBinding resolveTypeBinding() 

Source Link

Document

Resolves and returns the binding for the type of this expression.

Usage

From source file:com.google.devtools.j2cpp.types.BindingMapBuilder.java

License:Open Source License

@Override
public boolean visit(TypeLiteral node) {
    put(node, node.resolveTypeBinding());
    return true;
}

From source file:com.ibm.wala.cast.java.translator.jdt.JDTJava2CAstTranslator.java

License:Open Source License

private CAstNode visit(TypeLiteral n, WalkContext context) {
    String typeName = fIdentityMapper.typeToTypeID(n.resolveTypeBinding());
    return makeNode(context, fFactory, n, CAstNode.TYPE_LITERAL_EXPR, fFactory.makeConstant(typeName));
}