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

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

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom NullLiteral 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(NullLiteral node) {
    put(node, node.resolveTypeBinding());
    return true;
}

From source file:net.sf.j2s.core.astvisitors.ASTKeywordVisitor.java

License:Open Source License

public boolean visit(NullLiteral node) {
    /*//  w  w  w  . j av a 2 s  .com
     * TODO: Clazz.castNullAs should be used instead
     */
    ITypeBinding binding = node.resolveTypeBinding();
    if (binding != null)
        buffer.append("null");
    return super.visit(node);
}