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

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

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom PrefixExpression 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.eclipse.objectteams.otdt.debug.ui.internal.actions.OTValidBreakpointLocationLocator.java

License:Open Source License

/**
 * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.PrefixExpression)
 *//*from w ww  . ja  va2 s  . c o m*/
public boolean visit(PrefixExpression node) {
    if (visit(node, false)) {
        if (isReplacedByConstantValue(node)) {
            fLineLocation = lineNumber(node.getStartPosition());
            fLocationFound = true;
            fLocationType = LOCATION_LINE;
            fTypeName = computeTypeName(node);
            return false;
        }
        return true;
    }
    return false;
}