Package r194

Examples of r194.Parser$Type


                    type,
                    MetafacadeConstants.NAMESPACE_SCOPE_OPERATOR,
                    true);
            if (modelElement instanceof Type)
            {
                Type element = (Type)modelElement;
                final Property property = umlClass.createOwnedAttribute(
                        name,
                        element,
                        1,
                        1);
View Full Code Here


        }
        boolean isEntityAssociation = true;
        for (Iterator ends = ((Association)this.metaObject).getMemberEnds().iterator(); ends.hasNext();)
        {
            final Property prop = (Property)ends.next();
            final Type propertyType = prop.getType();
            if (propertyType == null || !UmlUtilities.containsStereotype(
                    propertyType,
                    UMLProfile.STEREOTYPE_ENTITY))
            {
                isEntityAssociation = false;
View Full Code Here

        ElementaryDataItem edi = (ElementaryDataItem)level01.getDataItems()[i];
        String attrName = edi.getDataName();
        DataField dataField = (DataField)edi.interpret();
        if (dataField != null) {
          Property attr = (Property)attrs.get(attrName);
          Type type = dataField.getType() == Integer.class ? integerType : stringType;
          if (attr == null) {
            String timestampFormat = "";
            String dateFormat = "";
            String length = "" + dataField.getLength();
            String fraction = "" + dataField.getFraction();
View Full Code Here

            m.visitCode();

            int index=1;
            m.visitVarInsn(ALOAD,0);
            for (Class param : c.getParameterTypes()) {
                Type t = Type.getType(param);
                m.visitVarInsn(t.getOpcode(ILOAD), index);
                index += t.getSize();
            }
            m.visitMethodInsn(INVOKESPECIAL, Type.getInternalName(base), "<init>", methodDescriptor);
            m.visitInsn(RETURN);
            m.visitMaxs(index,index);
            m.visitEnd();
View Full Code Here

  }
 
  public void filterTokens(){
    List<Lexeme> newTokens = new ArrayList<>();
    for (int i = 0; i < tokens.size(); i++) {
      Lexeme t = tokens.get(i);
      if (t.type != Token.WHITESPACE){
        newTokens.add(t);
      }
    }
    tokens = newTokens;
View Full Code Here

    }
  }
 
  public Lexeme lookahead(int i) {
    if (position + i >= tokens.size()){
      return new Lexeme("", Token.EOF);
    }
    return tokens.get(position + i);
  }
View Full Code Here

    List<Lexer.Lexeme> lexed = new Lexer().lex(code);
    System.out.println("Compiling");
    Parser p = new Parser(lexed);
    p.filterTokens();
    System.out.println(p.tokens);
    AbstractSyntaxNode program = p.program();
    System.out.println(program);
    System.out.println("Generating");
    GenerateAsm asm = new GenerateAsm();
    List<String> gen = asm.generate(program);
   
View Full Code Here

TOP

Related Classes of r194.Parser$Type

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.