Examples of ISourceContext


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

Examples of org.aspectj.weaver.ISourceContext

        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
Copyright © 2018 www.massapi.com. 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.