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

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

Introduction

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

From source file:edu.uci.ics.sourcerer.extractor.ast.ReferenceExtractorVisitor.java

License:Open Source License

/**
 * This method writes:// w  w w.  j  a v a  2 s  .c  o  m
 *<ul>
 *  <li>For any number literal:
 *  <ul>
 *    <li>Uses relation to <code>IRelationWriter</code>.</li>
 *  </ul></li>
 *</ul>
 */
@Override
public boolean visit(NumberLiteral node) {
    // Write the uses relation
    relationWriter.writeUses(fqnStack.getFqn(), node.resolveTypeBinding().getQualifiedName(),
            getLocation(node));
    return true;
}

From source file:edu.uci.ics.sourcerer.tools.java.extractor.eclipse.ReferenceExtractorVisitor.java

License:Open Source License

/**
 * This method writes://www .j a  v a  2s.co m
 *<ul>
 *  <li>For any number literal:
 *  <ul>
 *    <li>Uses relation to <code>IRelationWriter</code>.</li>
 *  </ul></li>
 *</ul>
 */
@Override
public boolean visit(NumberLiteral node) {
    // Write the uses relation
    relationWriter.writeRelation(Relation.USES, fqnStack.getFqn(), node.resolveTypeBinding().getQualifiedName(),
            createLocation(node));
    return true;
}