Logo Search packages:      
Sourcecode: aspectj version File versions  Download package

Type [] org::aspectj::internal::lang::reflect::AdviceImpl::getGenericParameterTypes (  )  [inline]

The generic parameter types,

See also:
java.lang.reflect.Method.getGenericParameterTypes

Implements org::aspectj::lang::reflect::Advice.

Definition at line 55 of file AdviceImpl.java.

References getName().

                                               {
            if (this.genericParameterTypes == null) {
                  Type[] genTypes = adviceMethod.getGenericParameterTypes();
                  int syntheticCount = 0;
                  for (Type t : genTypes) {
                        if (t instanceof Class) {
                              if (((Class)t).getPackage().getName().equals(AJC_INTERNAL)) syntheticCount++;
                        }
                  }
                  this.genericParameterTypes = new Type[genTypes.length - syntheticCount];
                  for (int i = 0; i < genericParameterTypes.length; i++) {
                        if (genTypes[i] instanceof Class) {
                              this.genericParameterTypes[i] = AjTypeSystem.getAjType((Class<?>)genTypes[i]);
                        } else {
                              this.genericParameterTypes[i] = genTypes[i];
                        }
                  }
            }
            return this.genericParameterTypes;
      }


Generated by  Doxygen 1.6.0   Back to index