Example usage for org.aspectj.weaver IHasPosition getEnd

List of usage examples for org.aspectj.weaver IHasPosition getEnd

Introduction

In this page you can find the example usage for org.aspectj.weaver IHasPosition getEnd.

Prototype

int getEnd();

Source Link

Document

The ending index of this location in the character stream This points to the last character in this token.

Usage

From source file:org.caesarj.compiler.aspectj.CaesarBcelSourceContext.java

License:Open Source License

public ISourceLocation makeSourceLocation(IHasPosition position) {
    if (position instanceof Advice) {
        return new SourceLocation(getSourceFile(), position.getEnd());
    } else {/*from  w  w  w. j  a  va 2s . c  o  m*/
        return super.makeSourceLocation(position);
    }
}