Package org.aspectj.weaver

Examples of org.aspectj.weaver.ISourceContext


    public ISourceLocation getSourceLocation() {
      ISourceLocation ret = super.getSourceLocation();
      if ((ret == null || ret.getLine()==0) && hasDeclarationLineNumberInfo()) {
        // lets see if we can do better
        ISourceContext isc = getSourceContext();
        if (isc !=null) ret = isc.makeSourceLocation(getDeclarationLineNumber(), getDeclarationOffset());
        else            ret = new SourceLocation(null,getDeclarationLineNumber());
      }
      return ret;
    }
View Full Code Here


        out.println("  end " + toShortString());
    }


  private void printAspectAttributes(PrintStream out, WeaverVersionInfo weaverVersion) {
    ISourceContext context = null;
    if (enclosingClass != null && enclosingClass.getType() != null) {
      context = enclosingClass.getType().getSourceContext();
    }
    List as = BcelAttributes.readAjAttributes(getClassName(),attributes, context,null,weaverVersion);
    if (! as.isEmpty()) {
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.ISourceContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.