Examples of ClassDeclaration


Examples of org.apache.beehive.netui.compiler.typesystem.declaration.ClassDeclaration

        // First go through the other classes in this package to look for other classes of this type.  Only one per
        // directory is allowed.
        //
        for ( int i = 0; i < packageClasses.length; i++ )
        {
            ClassDeclaration classDecl = packageClasses[i];
            if ( CompilerUtils.getAnnotation( classDecl, CONTROLLER_TAG_NAME ) != null
                 && CompilerUtils.isAssignableFrom( baseClass, classDecl, getEnv() ) )
            {
                File file = CompilerUtils.getSourceFile( classDecl, false );
               
View Full Code Here

Examples of org.apache.beehive.netui.compiler.typesystem.declaration.ClassDeclaration

        for ( Iterator ii = innerTypes.iterator(); ii.hasNext();
        {
            TypeDeclaration innerType = ( TypeDeclaration ) ii.next();
            if ( innerType instanceof ClassDeclaration )
            {
                ClassDeclaration innerClass = ( ClassDeclaration ) innerType;
               
                if ( innerType.hasModifier( Modifier.PUBLIC )
                     && CompilerUtils.isAssignableFrom( PAGEFLOW_FORM_CLASS_NAME, innerClass, _env ) )
                {
                    addFormBean( innerClass, null );
View Full Code Here

Examples of org.apache.beehive.netui.compiler.typesystem.declaration.ClassDeclaration

   
    private void getMessageResourcesFromForm( TypeDeclaration formTypeDecl, ActionModel actionModel )
    {
        if ( ! ( formTypeDecl instanceof ClassDeclaration ) ) return;
       
        ClassDeclaration formClassDecl = ( ClassDeclaration ) formTypeDecl;
       
        AnnotationInstance ann = CompilerUtils.getAnnotation( formClassDecl, FORM_BEAN_TAG_NAME, true );
       
        if ( ann != null )
        {
View Full Code Here

Examples of org.apache.beehive.netui.compiler.typesystem.declaration.ClassDeclaration

        if ( ! ( type instanceof ClassDeclaration ) )
        {
            return false;
        }
       
        ClassDeclaration classDecl = ( ClassDeclaration ) type;
       
        do
        {
            //
            // First look through the action methods.
            //
            MethodDeclaration[] methods = classDecl.getMethods();
           
            for ( int i = 0; i < methods.length; i++ )
            {
                MethodDeclaration method = methods[i];
                if ( method.getSimpleName().equals( actionName )
                     && CompilerUtils.getAnnotation( method, ACTION_TAG_NAME ) != null )
                {
                    return true;
                }
            }
           
            //
            // Next, look through the simple actions (annotations).
            //
            Collection simpleActionAnnotations =
                CompilerUtils.getAnnotationArrayValue( classDecl, CONTROLLER_TAG_NAME, SIMPLE_ACTIONS_ATTR, true );
           
            if ( simpleActionAnnotations != null )
            {
                for ( Iterator i = simpleActionAnnotations.iterator(); i.hasNext();
                {
                    AnnotationInstance ann = ( AnnotationInstance ) i.next();
                    String name = CompilerUtils.getString( ann, NAME_ATTR, false );
               
                    if ( actionName.equals( name )
                            && ! CompilerUtils.annotationsAreEqual( ann, annotationToIgnore, false, env ) )
                    {
                        return true;
                    }
                }
            }
           
            ClassType superType = classDecl.getSuperclass();
            classDecl = superType != null ? superType.getClassTypeDeclaration() : null;
        } while ( checkInheritedActions && classDecl != null );
       
       
        return false;
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.ClassDeclaration

   
    char indentChar = FormatterUtils
        .getFormatterCommonPrferences().getIndentationChar(document);
    String indent = String.valueOf(indentChar);
   
    ClassDeclaration clazz = (ClassDeclaration) node;
    Block body = clazz.getBody();
    List<Statement> bodyStatements = body.statements();
       

    int end = bodyStatements.get(bodyStatements.size()-1).getEnd();
   
View Full Code Here

Examples of org.eclipse.php.internal.core.compiler.ast.nodes.ClassDeclaration

            public boolean visit(MethodDeclaration s)
                throws Exception {
              if (s == methodDecl
                  && currentType instanceof ClassDeclaration) {
                ClassDeclaration classDecl = (ClassDeclaration) currentType;

                ASTListNode superClasses = classDecl
                    .getSuperClasses();
                List childs = superClasses.getChilds();
                for (Iterator iterator = childs.iterator(); iterator
                    .hasNext();) {
                  ASTNode node = (ASTNode) iterator.next();
View Full Code Here

Examples of org.freud.analysed.javasource.ClassDeclaration

            for (JavaSourceTokenType tokenType : POSSIBLE_CLASS_DECLARATION_TYPES) {
                final String tokenName = tokenType.getName();
                List<Element> innerClassElementList =
                        context.selectNodes("/" + CLASS_TOP_LEVEL_SCOPE.getName() + "/" + tokenName);
                for (Element innerClassElement : innerClassElementList) {
                    ClassDeclaration innerClass = new ClassDeclarationJdom(innerClassElement, DeclarationType.valueOf(tokenName), this);
                    innerClassDeclarationByNameMap.put(innerClass.getName(), innerClass);
                }
            }
        }
        return innerClassDeclarationByNameMap;
    }
View Full Code Here

Examples of sun.tools.java.ClassDeclaration

  public boolean classExists(Identifier id) {
      if (id.isInner())
    id = id.getTopName();
      Type t = Type.tClass(id);
      try {
    ClassDeclaration c = (ClassDeclaration)classes.get(t);
    if (c == null) {
        Package pkg = getPackage(id.getQualifier());
        return pkg.getBinaryFile(id.getName()) != null;
    }
    return c.getName().equals(id);
      } catch (IOException e) {
    return false;
      }
  }
View Full Code Here

Examples of wyvern.tools.typedAST.core.declarations.ClassDeclaration

        new New(new DeclSequence(), unkLoc), true);


    ArrayList<TypedAST> pairedObjDecls = new ArrayList<>();
    pairedObjDecls.addAll(Arrays.asList(classDecls));
    TypedAST pairedObj = new ClassDeclaration(wyvClassName, "", "", new DeclSequence(pairedObjDecls), unkLoc);

    Type parseBufferType = Util.javaToWyvType(ParseBuffer.class);


    Type javaClassType = Util.javaToWyvType(javaClass);
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.