~ubuntu-branches/ubuntu/wily/aspectj/wily-proposed

« back to all changes in this revision

Viewing changes to org.aspectj/modules/runtime/src/org/aspectj/runtime/reflect/Factory.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2011-03-15 23:54:31 UTC
  • mfrom: (1.2.5 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110315235431-iq2gxbsx08kpwuiw
* New upstream release.
* Updated Standards-Version to 3.9.1 (no changes needed).
* Fix local Javadoc links:
  - d/patches/07_javadoc_links.diff: Use locally installed
   javadoc packages and hyperlink with them.
  - d/control: Add B-D on default-java-doc and libasm3-java-doc.
* d/control: Drop B-D on itself (our new bootstrap infrastructure doesn't need
  that anymore).
* Split packages into :
  - aspectj: only contains CLI tools.
  - libaspectj-java: JAR librairies for /usr/share/java.
  - libaspectj-java-doc: 4 API's Javadoc.
  - aspectj-doc: Programming Guides and SDK Documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 * Contributors: 
11
11
 *     Xerox/PARC     initial implementation 
12
12
 *    Alex Vasseur    new factory methods for variants of JP
 
13
 *    Abraham Nevado  new factory methods for collapsed SJPs
13
14
 * ******************************************************************/
14
15
 
15
16
package org.aspectj.runtime.reflect;
83
84
                lookupClassLoader = lexicalClass.getClassLoader();
84
85
        }
85
86
 
 
87
        
 
88
        /**
 
89
         * Create a signature and build a JoinPoint in one step.  Prior to 1.6.10 this was done as a two step operation in the generated
 
90
         * code but merging these methods in the runtime library enables the generated code to be shorter.  Generating code that
 
91
         * uses this method requires the weaver to be invoked with <tt>-Xset:targetRuntime1_6_10=true</tt>.
 
92
         * 
 
93
         * @since 1.6.10
 
94
         */
 
95
        public JoinPoint.StaticPart makeSJP(String kind, String modifiers, String methodName, String declaringType, String paramTypes,
 
96
                        String paramNames, String exceptionTypes, String returnType, int l) {
 
97
                Signature sig = this.makeMethodSig(modifiers, methodName, declaringType, paramTypes, paramNames, exceptionTypes, returnType);
 
98
                return new JoinPointImpl.StaticPartImpl(count++, kind, sig, makeSourceLoc(l, -1));
 
99
        }
 
100
        
 
101
        /**
 
102
         * Create a signature and build a JoinPoint in one step.  Prior to 1.6.10 this was done as a two step operation in the generated
 
103
         * code but merging these methods in the runtime library enables the generated code to be shorter.  Generating code that
 
104
         * uses this method requires the weaver to be invoked with <tt>-Xset:targetRuntime1_6_10=true</tt>.
 
105
         * <p>
 
106
         * This method differs from the previous one in that it includes no exceptionTypes parameter - it is an optimization for the
 
107
         * case where there are no exceptions.  The generated code won't build an empty string and will not pass it into here.
 
108
         * 
 
109
         * @since 1.6.10
 
110
         */
 
111
        public JoinPoint.StaticPart makeSJP(String kind, String modifiers, String methodName, String declaringType, String paramTypes,
 
112
                        String paramNames, String returnType, int l) {
 
113
                Signature sig = this.makeMethodSig(modifiers, methodName, declaringType, paramTypes, paramNames, "", returnType);
 
114
                return new JoinPointImpl.StaticPartImpl(count++, kind, sig, makeSourceLoc(l, -1));
 
115
        }
 
116
 
86
117
        public JoinPoint.StaticPart makeSJP(String kind, Signature sig, SourceLocation loc) {
87
118
                return new JoinPointImpl.StaticPartImpl(count++, kind, sig, loc);
88
119
        }