Example usage for org.eclipse.jdt.core.dom FieldAccess getStartPosition

List of usage examples for org.eclipse.jdt.core.dom FieldAccess getStartPosition

Introduction

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

Prototype

public final int getStartPosition() 

Source Link

Document

Returns the character index into the original source file indicating where the source fragment corresponding to this node begins.

Usage

From source file:org.bundlemaker.core.ui.editor.sourceviewer.referencedetail.JdtAstVisitor.java

License:Open Source License

@Override
public boolean visit(FieldAccess node) {

    // resolve type
    IVariableBinding variableBinding = node.resolveFieldBinding();

    if (variableBinding != null) {
        resolveTypeBinding(variableBinding.getType(), node.getStartPosition(), node.getLength());
    }/*from w  ww .  j a  v  a2s  .c o m*/
    // visit the child nodes
    return true;
}