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
* ******************************************************************/
15
16
package org.aspectj.runtime.reflect;
83
84
lookupClassLoader = lexicalClass.getClassLoader();
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>.
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));
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>.
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.
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));
86
117
public JoinPoint.StaticPart makeSJP(String kind, Signature sig, SourceLocation loc) {
87
118
return new JoinPointImpl.StaticPartImpl(count++, kind, sig, loc);