Examples of TypeDeclaration


Examples of com.asakusafw.utils.java.model.syntax.TypeDeclaration

                    ImportBuilder.Strategy.TOP_LEVEL);
        }


        public CompilationUnit generate() throws IOException {
            TypeDeclaration type = createType();
            return factory.newCompilationUnit(
                    importer.getPackageDeclaration(),
                    importer.toImportDeclarations(),
                    Collections.singletonList(type),
                    Collections.<Comment>emptyList());
View Full Code Here

Examples of com.dragome.compiler.ast.TypeDeclaration

      clazz.setResolved(true);

      new FieldUnit(getSignature("length"), clazz);

      TypeDeclaration typeDecl= new TypeDeclaration(new ObjectType(clazz.getName()), 0, new HashMap<String, String>());//revisar annotations
      typeDecl.setSuperType(Type.OBJECT);
      typeDecl.visit(DragomeJsCompiler.compiler.generator);
    }
    else
    {
      TypeResolver resolver= new TypeResolver(this, DragomeJsCompiler.compiler.generator);
      visitSuperTypes(clazz, resolver);
View Full Code Here

Examples of com.github.antlrjavaparser.api.body.TypeDeclaration

                    constructor.setCommentStructure(commentStructure);

                    cidBuilder.addConstructor(constructor);
                }
                if (member instanceof TypeDeclaration) {
                    final TypeDeclaration castMember = (TypeDeclaration) member;
                    final JavaType innerType = new JavaType(
                            castMember.getName(), name);
                    final String innerTypeMetadataId = PhysicalTypeIdentifier
                            .createIdentifier(innerType, PhysicalTypeIdentifier
                                    .getPath(declaredByMetadataId));
                    final ClassOrInterfaceTypeDetails cid = new JavaParserClassOrInterfaceTypeDetailsBuilder(
                            compilationUnit, compilationUnitServices,
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.TypeDeclaration

        if (d.getTypeParameters() != null && !d.getTypeParameters().isEmpty()) {
            out("$$targs$$,");
        }
        out(names.self(d), "){");
        final ProducedType pt = ext.getTypeModel();
        final TypeDeclaration aliased = pt.getDeclaration();
        qualify(that,aliased);
        out(names.name(aliased), "(");
        if (!pt.getTypeArguments().isEmpty()) {
            TypeUtils.printTypeArguments(that, pt.getTypeArguments(), this, true,
                    pt.getVarianceOverrides());
View Full Code Here

Examples of com.strobel.decompiler.languages.java.ast.TypeDeclaration

        compilationUnit.acceptVisitor(phaseOneVisitor, null);

        super.run(compilationUnit);

        for (final TypeReference localType : _localTypes.keySet()) {
            final TypeDeclaration declaration = _localTypes.get(localType);
            final List<ObjectCreationExpression> instantiations = _instantiations.get(localType);

            LocalClassHelper.replaceClosureMembers(
                context,
                declaration,
View Full Code Here

Examples of com.sun.mirror.declaration.TypeDeclaration

        }
      }
      if ( typemap_classname == null )
        throw new RuntimeException("No TypeMap class name specified with -Atypemap=<class-name>");

      TypeDeclaration lastFile = null;
      try {
        long generatorLM = getGeneratorLastModified();
        TypeMap type_map = (TypeMap)(Class.forName(typemap_classname).newInstance());
        for ( TypeDeclaration typedecl : env.getSpecifiedTypeDeclarations() ) {
          lastFile = typedecl;
          typedecl.accept(getDeclarationScanner(new GeneratorVisitor(env, type_map, generate_error_checks, context_specific, generatorLM), NO_OP));
        }
      } catch (Exception e) {
        if ( lastFile == null )
          throw new RuntimeException(e);
        else
          throw new RuntimeException("\n-- Failed to process template: " + lastFile.getQualifiedName() + " --", e);
      }
    }
View Full Code Here

Examples of com.volantis.devrep.device.api.xml.definitions.TypeDeclaration

    }

    private void dumpDefinitions(DefinitionSet definitionSet, StringBuffer buffer) {
        Iterator types = definitionSet.types();
        while (types.hasNext()) {
            TypeDeclaration typeDeclaration = (TypeDeclaration) types.next();
            dumpTypeDeclaration(typeDeclaration, buffer);

        }
        Iterator categories = definitionSet.categories();
        while (categories.hasNext()) {
View Full Code Here

Examples of japa.parser.ast.body.TypeDeclaration

  public void renderDelegateMethods(Config config) throws ParseException, IOException {

    File classFile = new File(config.getTargetJavaClassFile());
   
    FileInputStream in = new FileInputStream(classFile);
    TypeDeclaration mainType = null;
    CompilationUnit cu;
    try {
      // parse the file
      cu = JavaParser.parse(in);

      mainType = searchForMainType(cu);
      mainType.getName();
    } finally {
      in.close();
    }

    config.setTargetType(mainType);
View Full Code Here

Examples of lombok.ast.TypeDeclaration

        "annotation method declarations");
    checkStaticChain(md.astModifiers());
  }
 
  public void fieldModifiersCheck(VariableDeclaration vd) {
    TypeDeclaration td = vd.upUpToTypeDeclaration();
    if (td == null) return//not a field.
    VariableDefinition def = vd.astDefinition();
    if (def != null) {
      Modifiers m = def.astModifiers();
      modifiersCheck(m, FIELD_MODIFIERS_EXCLUSIVITY, FIELD_MODIFIERS_LEGAL, "field declarations");
View Full Code Here

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

        //
        Collection innerTypes = CompilerUtils.getClassNestedTypes( jclass );
       
        for ( Iterator ii = innerTypes.iterator(); ii.hasNext();
        {
            TypeDeclaration innerType = ( TypeDeclaration ) ii.next();
            if ( innerType instanceof ClassDeclaration
                 && innerType.hasModifier( Modifier.PUBLIC )
                 && innerType.hasModifier( Modifier.STATIC ) )
            {
                addRulesFromBeanClass( ( ClassDeclaration ) innerType );
            }
        }
    }
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.