Package uk.co.badgersinfoil.metaas.dom

Examples of uk.co.badgersinfoil.metaas.dom.ASField


  public ASField getField(String name) {
    for (ASTIterator i=blockIter(); i.hasNext(); ) {
      LinkedListTree member = i.next();
      if (member.getType() == AS3Parser.VAR_DEF) {
        ASField field = new ASTASField(member);
        if (field.getName().equals(name)) {
          return field;
        }
      }
    }
    return null;
View Full Code Here


  public void removeField(String name) {
    for (ASTIterator i=blockIter(); i.hasNext(); ) {
      LinkedListTree member = i.next();
      if (member.getType() == AS3Parser.VAR_DEF) {
        ASField field = new ASTASField(member);
        if (field.getName().equals(name)) {
          i.remove();
          return;
        }
      }
    }
View Full Code Here

      ASMethod method = (ASMethod)i.next();
      walk((ASMember)method);
      walk(method);
    }
    for (i=clazz.getFields().iterator(); i.hasNext(); ) {
      ASField field = (ASField)i.next();
      walk((ASMember)field);
      walk(field);
    }
  }
View Full Code Here

    if (proxyUnit != null) {
      String proxyMethodName = firstToUpper(methodName);
      boolean hasField = false;

      for (Object o : eventType.getFields()) {
        ASField field = (ASField) o;
        if (field.getName().equals(proxyMethodName)) {
          hasField = true;
          break;
        }
      }
View Full Code Here

  public boolean traverse(ClassDoc classDoc) {
    return true;
  }

  private void createConst(ASClassType classType, String name, String initializer, String type, String comment) {
    ASField field = classType.newField(name, Visibility.PUBLIC, type);

    field.setInitializer(initializer);
    field.setStatic(true);
    field.setConst(true);

    if (!StringUtils.isEmpty(comment)) field.setDescription(comment.trim());
  }
View Full Code Here

    if (proxyUnit != null) {
      String proxyMethodName = firstToUpper(methodName);
      boolean hasField = false;

      for (Object o : eventType.getFields()) {
        ASField field = (ASField) o;
        if (field.getName().equals(proxyMethodName)) {
          hasField = true;
          break;
        }
      }
View Full Code Here

  public boolean traverse(ClassDoc classDoc) {
    return true;
  }

  private void createConst(ASClassType classType, String name, String initializer, String type, String comment) {
    ASField field = classType.newField(name, Visibility.PUBLIC, type);

    field.setInitializer(initializer);
    field.setStatic(true);
    field.setConst(true);

    if (!StringUtils.isEmpty(comment)) field.setDescription(comment.trim());
  }
View Full Code Here

    if (proxyUnit != null) {
      String proxyMethodName = firstToUpper(methodName);
      boolean hasField = false;

      for (Object o : eventType.getFields()) {
        ASField field = (ASField) o;
        if (field.getName().equals(proxyMethodName)) {
          hasField = true;
          break;
        }
      }
View Full Code Here

  public boolean traverse(ClassDoc classDoc) {
    return true;
  }

  private void createConst(ASClassType classType, String name, String initializer, String type, String comment) {
    ASField field = classType.newField(name, Visibility.PUBLIC, type);

    field.setInitializer(initializer);
    field.setStatic(true);
    field.setConst(true);

    if (!StringUtils.isEmpty(comment)) field.setDescription(comment.trim());
  }
View Full Code Here

TOP

Related Classes of uk.co.badgersinfoil.metaas.dom.ASField

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.