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

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

Introduction

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

Prototype

public final int getLength() 

Source Link

Document

Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends.

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());
    }//w  w  w. j ava 2s .c  o m
    // visit the child nodes
    return true;
}