Examples of Declaration


Examples of at.bestsolution.efxclipse.tooling.decora.decoraDsl.declaration

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetD(declaration newD, NotificationChain msgs)
  {
    declaration oldD = d;
    d = newD;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DecoraDslPackage.DECLARATION_STATEMENT__D, oldD, newD);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of ceylon.language.meta.declaration.Declaration

   
    public Declaration ref(String ref) {
        i = 0;
        this.ref = ref;
        String version = version();
        Declaration module = module(version);
        return module;
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.flow.graph.OperatorDescription.Declaration

        assertThat(params.size(), is(1));
        assertThat(params.get(0).getName(), is("param"));
        assertThat(params.get(0).getType(), is((Type) int.class));
        assertThat(params.get(0).getValue(), is((Object) 5));

        Declaration decl = desc.getDeclaration();
        assertThat(decl.getAnnotationType(), is((Type) MockOperator.class));
        assertThat(decl.getDeclaring().getName(), is("com.example.Simple"));
        assertThat(decl.getImplementing().getName(), is("com.example.SimpleImpl"));
        assertThat(decl.getName(), is("example"));
        assertThat(decl.getParameterTypes(), is((Object) Arrays.<Object>asList(
                String.class, int.class)));

        Graph<String> graph = toGraph(in);
        assertThat(graph.getConnected("in"), isJust(desc.getName()));
        assertThat(graph.getConnected(desc.getName()), isJust("out"));
View Full Code Here

Examples of com.github.sommeri.less4j.core.ast.Declaration

    Iterator<HiddenTokenAwareTree> iterator = token.getChildren().iterator();
    HiddenTokenAwareTree nameToken = iterator.next();
    InterpolableName name = toInterpolableName(nameToken, nameToken.getChildren());

    if (!iterator.hasNext())
      return new Declaration(token, name);

    HiddenTokenAwareTree expressionToken = iterator.next();
    ListExpressionOperator.Operator mergeOperator = null;
    if (expressionToken.getType() == LessLexer.PLUS) {
      expressionToken = iterator.next();
      mergeOperator = ListExpressionOperator.Operator.COMMA;
      if (expressionToken.getType() == LessLexer.UNDERSCORE) {
        expressionToken = iterator.next();
        mergeOperator = ListExpressionOperator.Operator.EMPTY_OPERATOR;
      }
    }

    if (expressionToken.getType() == LessLexer.IMPORTANT_SYM)
      return new Declaration(token, name, null, true, mergeOperator);

    Expression expression = (Expression) switchOn(expressionToken);
    if (!iterator.hasNext())
      return new Declaration(token, name, expression, mergeOperator);

    HiddenTokenAwareTree importantToken = iterator.next();
    if (importantToken.getType() == LessLexer.IMPORTANT_SYM)
      return new Declaration(token, name, expression, true, mergeOperator);

    throw new BugHappened(GRAMMAR_MISMATCH, token);
  }
View Full Code Here

Examples of com.google.caja.parser.js.Declaration

  private static BreakStmt b(String label) {
    return new BreakStmt(FilePosition.UNKNOWN, label);
  }
  private static Declaration decl(String name) {
    return new Declaration(
        FilePosition.UNKNOWN, new Identifier(FilePosition.UNKNOWN, name), null);
  }
View Full Code Here

Examples of com.icona.tree.nodes.Declaration

     
      public SourceFile getSrc(){
        return src;
      }
      private Declaration mergeAndCreateDeclaration(Declaration declaration,Identifier identifier,ArrayType arrayType, Expression initializations){
        Declaration decl=(Declaration)declaration.clone();
        decl.setIdentifier(identifier);
        decl.setArrayDimensions(arrayType);
        decl.setListExpression(initializations);
       
        return decl;
      }
View Full Code Here

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

        } else if (s instanceof TypeAliasDeclaration) {
            addAliasDeclarationToPrototype(d, (TypeAliasDeclaration)s);
        }
        //This fixes #231 for prototype style
        if (params != null && s instanceof Tree.Declaration) {
            Declaration m = ((Tree.Declaration)s).getDeclarationModel();
            for (Iterator<com.redhat.ceylon.compiler.typechecker.model.Parameter> iter = params.iterator();
                    iter.hasNext();) {
                com.redhat.ceylon.compiler.typechecker.model.Parameter _p = iter.next();
                if (m.getName() != null && m.getName().equals(_p.getName())) {
                    iter.remove();
                    break;
                }
            }
        }
View Full Code Here

Examples of com.sun.mirror.declaration.Declaration

        // or a class type.
        if ( fieldType instanceof InterfaceType )
        {
            // Valid interface type decls must be annotated w/ @ControlInterface
            // or @ControlExtension.
            Declaration fieldTypeDecl = ((InterfaceType)fieldType).getDeclaration();
            if ( fieldTypeDecl.getAnnotation(ControlInterface.class) == null &&
                 fieldTypeDecl.getAnnotation(ControlExtension.class) == null )
                printError( f, "control.field.bad.interfacetype" );
        }
        else if ( fieldType instanceof ClassType )
        {
            // Valid class type decls must implements the ControlBean API.
View Full Code Here

Examples of net.jangaroo.exml.model.Declaration

            String constantTypeName = element.getAttribute(Exmlc.EXML_DECLARATION_TYPE_ATTRIBUTE);
            model.addImport(constantTypeName);
          } else if (Exmlc.EXML_DESCRIPTION_NODE_NAME.equals(node.getLocalName())) {
            model.setDescription(node.getTextContent());
          } else if (Exmlc.EXML_VAR_NODE_NAME.equals(node.getLocalName())) {
            Declaration var = new Declaration(element.getAttribute(Exmlc.EXML_DECLARATION_NAME_ATTRIBUTE),
              element.getAttribute(Exmlc.EXML_DECLARATION_VALUE_ATTRIBUTE),
              element.getAttribute(Exmlc.EXML_DECLARATION_TYPE_ATTRIBUTE));
            if (!model.getVars().contains(var)) {
              model.addVar(var);
            }
View Full Code Here

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

        //
        // Now, check the declarations.
        //
        for ( Iterator i = declsToCheck.iterator(); i.hasNext(); )
        {
            Declaration decl = ( Declaration ) i.next();
            check( decl );
        }
    }
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.