Package com.sun.mirror.type

Examples of com.sun.mirror.type.DeclaredType


        //
        // Read the name of the checker class from the @ControlInterface annotation,
        // dynamically load and run it.
        //

        DeclaredType checkerMirror = (DeclaredType)controlAnnot.getObjectValue("checker");
        if ( checkerMirror == null )
        {
            // try the deprecated 'checkerClass' attribute
            checkerMirror = (DeclaredType)controlAnnot.getObjectValue("checkerClass");
        }

        if ( checkerMirror != null && checkerMirror.getDeclaration() != null )
        {
            // TODO: optimize to not invoke default checker?
            String checkerName = checkerMirror.toString();

            try
            {
                ClassLoader loader = getExternalClassLoader();
View Full Code Here


    {
        //
        // Get an iterator to both the declared type arguments and the original type
        // declaration on the associated control interface
        //
        DeclaredType fieldType = (DeclaredType)_fieldDecl.getType();
        Iterator<TypeMirror> paramBoundIter = fieldType.getActualTypeArguments().iterator();

        TypeDeclaration intfDecl = (TypeDeclaration)_controlIntf.getTypeDeclaration();
        Iterator<TypeParameterDeclaration> paramDeclIter =
                                            intfDecl.getFormalTypeParameters().iterator();
View Full Code Here

                if ( ma.getAnnotationType().getDeclaration().getQualifiedName().
                        equals( "org.apache.beehive.controls.spi.svc.InterceptorAnnotation" ) )
                {
                    // found an interceptor-based annotation, add it!
                    AptAnnotationHelper ia = new AptAnnotationHelper( ma );
                    DeclaredType serviceType = (DeclaredType) ia.getObjectValue("service");
                    String intf = serviceType.toString();
                    ret.add( intf );

                    break;
                }
            }
View Full Code Here

        if ( references != null )
        {
            for ( AnnotationValue av : references )
            {
                DeclaredType crType = (DeclaredType)av.getValue();
                if ( crType instanceof InterfaceType )
                {
                    // Valid interface type decls must be annotated w/ @ControlInterface
                    // or @ControlExtension.
                    Declaration typeDecl = crType.getDeclaration();
                    if ( typeDecl.getAnnotation(ControlInterface.class) == null &&
                         typeDecl.getAnnotation(ControlExtension.class) == null )
                         printError( t, "control.reference.bad.interfacetype" );
                }
            }
View Full Code Here

                {
                    /*
                    found an interceptor-based annotation, add it!
                    */
                    AptAnnotationHelper ia = new AptAnnotationHelper( ma );
                    DeclaredType serviceType = (DeclaredType) ia.getObjectValue("service");
                    String intf = serviceType.toString();
                    ret.add( intf );

                    break;
                }
            }
View Full Code Here

        //
        // Read the name of the checker class from the @ControlInterface annotation,
        // dynamically load and run it.
        //

        DeclaredType checkerMirror = (DeclaredType)controlAnnot.getObjectValue("checker");
        if ( checkerMirror == null )
        {
            // try the deprecated 'checkerClass' attribute
            checkerMirror = (DeclaredType)controlAnnot.getObjectValue("checkerClass");
        }

        if ( checkerMirror != null && checkerMirror.getDeclaration() != null )
        {
            // TODO: optimize to not invoke default checker?
            String checkerName = checkerMirror.toString();

            try
            {
                ClassLoader loader = getExternalClassLoader();
View Full Code Here

        if ( references != null )
        {
            for ( AnnotationValue av : references )
            {
                DeclaredType crType = (DeclaredType)av.getValue();
                if ( crType instanceof InterfaceType )
                {
                    // Valid interface type decls must be annotated w/ @ControlInterface
                    // or @ControlExtension.
                    Declaration typeDecl = crType.getDeclaration();
                    if ( typeDecl.getAnnotation(ControlInterface.class) == null &&
                         typeDecl.getAnnotation(ControlExtension.class) == null )
                         printError( t, "control.reference.bad.interfacetype" );
                }
                else {
View Full Code Here

    {
        //
        // Get an iterator to both the declared type arguments and the original type
        // declaration on the associated control interface
        //
        DeclaredType fieldType = (DeclaredType)_fieldDecl.getType();
        Iterator<TypeMirror> paramBoundIter = fieldType.getActualTypeArguments().iterator();

        TypeDeclaration intfDecl = (TypeDeclaration)_controlIntf.getTypeDeclaration();
        Iterator<TypeParameterDeclaration> paramDeclIter =
                                            intfDecl.getFormalTypeParameters().iterator();
View Full Code Here

        //
        // Read the name of the checker class from the @ControlInterface annotation,
        // dynamically load and run it.
        //

        DeclaredType checkerMirror = (DeclaredType)controlAnnot.getObjectValue("checker");
        if ( checkerMirror == null )
        {
            // try the deprecated 'checkerClass' attribute
            checkerMirror = (DeclaredType)controlAnnot.getObjectValue("checkerClass");
        }

        if ( checkerMirror != null && checkerMirror.getDeclaration() != null )
        {
            // TODO: optimize to not invoke default checker?
            String checkerName = checkerMirror.toString();

            try
            {
                ClassLoader loader = getExternalClassLoader();
View Full Code Here

                {
                    /*
                    found an interceptor-based annotation, add it!
                    */
                    AptAnnotationHelper ia = new AptAnnotationHelper( ma );
                    DeclaredType serviceType = (DeclaredType) ia.getObjectValue("service");
                    String intf = serviceType.toString();
                    ret.add( intf );

                    break;
                }
            }
View Full Code Here

TOP

Related Classes of com.sun.mirror.type.DeclaredType

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