Examples of targetType()


Examples of org.aspectj.internal.lang.annotation.ajcITD.targetType()

        if (!m.getName().contains("ajc$postInterConstructor")) continue;
        if (m.isAnnotationPresent(ajcITD.class)) {
          ajcITD ann = m.getAnnotation(ajcITD.class);
          if (!Modifier.isPublic(ann.modifiers())) continue;
          InterTypeConstructorDeclaration itdc =
            new InterTypeConstructorDeclarationImpl(this,ann.targetType(),ann.modifiers(),m);
          itdcs.add(itdc);
        }       
      }
      this.itdCons = new InterTypeConstructorDeclaration[itdcs.size()];
      itdcs.toArray(this.itdCons);
View Full Code Here

Examples of org.aspectj.internal.lang.annotation.ajcITD.targetType()

          String interFieldGetDispatchMethodName =
            interFieldInitMethodName.replace("FieldInit","FieldGetDispatch");
          try {
            Method dispatch = clazz.getDeclaredMethod(interFieldGetDispatchMethodName, m.getParameterTypes());
            InterTypeFieldDeclaration itdf = new InterTypeFieldDeclarationImpl(
                this,ann.targetType(),ann.modifiers(),ann.name(),
                AjTypeSystem.getAjType(dispatch.getReturnType()),
                dispatch.getGenericReturnType());
            itdfs.add(itdf);
          } catch (NoSuchMethodException nsmEx) {
            throw new IllegalStateException("Can't find field get dispatch method for " + m.getName());
View Full Code Here

Examples of org.aspectj.internal.lang.annotation.ajcITD.targetType()

          String interFieldGetDispatchMethodName =
            interFieldInitMethodName.replace("FieldInit","FieldGetDispatch");
          try {
            Method dispatch = m.getDeclaringClass().getDeclaredMethod(interFieldGetDispatchMethodName, m.getParameterTypes());
            InterTypeFieldDeclaration itdf = new InterTypeFieldDeclarationImpl(
                this,ann.targetType(),ann.modifiers(),ann.name(),
                AjTypeSystem.getAjType(dispatch.getReturnType()),
                dispatch.getGenericReturnType());
            itdfs.add(itdf);
          } catch (NoSuchMethodException nsmEx) {
            throw new IllegalStateException("Can't find field get dispatch method for " + m.getName());
View Full Code Here

Examples of org.axonframework.serializer.ContentTypeConverter.targetType()

        ContentTypeConverter mockStreamToByteConverter = mock(ContentTypeConverter.class);
        when(mockConverterFactory.getConverter(byte[].class, InputStream.class)).thenReturn(mockByteToStreamConverter);
        when(mockConverterFactory.getConverter(InputStream.class, byte[].class)).thenReturn(mockStreamToByteConverter);

        when(mockByteToStreamConverter.expectedSourceType()).thenReturn(byte[].class);
        when(mockStreamToByteConverter.targetType()).thenReturn(InputStream.class);
        when(mockByteToStreamConverter.convert(isA(SerializedObject.class)))
                .thenReturn(intermediate1_stream);
        when(mockStreamToByteConverter.convert(intermediate2_stream))
                .thenReturn(intermediate2_bytes);
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.