Examples of singular()


Examples of lipstone.joshua.parser.util.ConsCell.singular()

  public ArrayList<ConsCell> getTerms(ConsCell equation) {
    ArrayList<ConsCell> output = new ArrayList<ConsCell>();
    ConsCell current = equation;
    do {
      if (current.getCarType() == ConsType.OPERATOR && ((Character) current.getCar() == '+' || (Character) current.getCar() == '-')) {
        output.add(current.singular());
        continue;
      }
      ConsCell term = new ConsCell();
      boolean skipSign = false;
      do {
View Full Code Here

Examples of lipstone.joshua.parser.util.ConsCell.singular()

      if (current.getCarType() != ConsType.OPERATOR || (Character) current.getCar() == '+' || (Character) current.getCar() == '^' || (Character) current.getCar() == '%')
        continue;
      ConsCell next = new ConsCell(), previous = new ConsCell();
      ConsCell head = current.getNextConsCell();
      do {
        next = next.append(head.singular());
        if ((head = head.remove()).getCarType() == ConsType.OPERATOR && (Character) head.getCar() == '^')
          next = next.append(head.singular());
        else
          break;
      } while (!(head = head.remove()).isNull());
View Full Code Here

Examples of lipstone.joshua.parser.util.ConsCell.singular()

      ConsCell next = new ConsCell(), previous = new ConsCell();
      ConsCell head = current.getNextConsCell();
      do {
        next = next.append(head.singular());
        if ((head = head.remove()).getCarType() == ConsType.OPERATOR && (Character) head.getCar() == '^')
          next = next.append(head.singular());
        else
          break;
      } while (!(head = head.remove()).isNull());
      next = next.getFirstConsCell();
      if ((Character) current.getCar() != '-') {
View Full Code Here

Examples of lipstone.joshua.parser.util.ConsCell.singular()

      } while (!(head = head.remove()).isNull());
      next = next.getFirstConsCell();
      if ((Character) current.getCar() != '-') {
        head = current.getPreviousConsCell();
        do {
          previous = previous.isNull() ? head.singular() : new ConsCell(head.getCar(), head.getCarType(), previous, ConsType.CONS_CELL);
          if ((head = head.remove().getPreviousConsCell()).getCarType() == ConsType.OPERATOR && (Character) head.getCar() == '^')
            previous = new ConsCell('^', ConsType.OPERATOR, previous, ConsType.CONS_CELL);
          else
            break;
        } while (!(head = head.remove().getPreviousConsCell()).isNull());
View Full Code Here

Examples of lipstone.joshua.parser.util.ConsCell.singular()

        if (base.getCarType() != ConsType.CONS_CELL)
          continue;
        ConsCell power = new ConsCell();
        ConsCell head = current.getNextConsCell();
        if (head.getCarType() == ConsType.OPERATOR && (Character) head.getCar() == '-') {
          power = power.append(head.singular());
          head.remove();
        }
        boolean skipCheck = false;
        while (!(head = current.getNextConsCell()).isNull() && (skipCheck || !(head.getCarType() == ConsType.OPERATOR && (Character) head.getCar() != '^'))) {
          power = power.append(head.singular());
View Full Code Here

Examples of lipstone.joshua.parser.util.ConsCell.singular()

          power = power.append(head.singular());
          head.remove();
        }
        boolean skipCheck = false;
        while (!(head = current.getNextConsCell()).isNull() && (skipCheck || !(head.getCarType() == ConsType.OPERATOR && (Character) head.getCar() != '^'))) {
          power = power.append(head.singular());
          head.remove();
          skipCheck = (power.getCarType() == ConsType.OPERATOR || (power.getCarType() == ConsType.IDENTIFIER && !parser.containsVariables(power)));
        }
        power = parser.run(removeExcessParentheses(power.getFirstConsCell()));
        if (parser.containsVariables(power)) {
View Full Code Here

Examples of org.grouplens.common.dto.Dto.Named.singular()

       
        @Override
        public String translateName(Field f) {
            Named n = f.getAnnotation(Named.class);
            if (n != null) {
                return (f.getType().isArray() ? n.plural() : n.singular());
            } else
                return f.getName();
        }
    }
}
View Full Code Here

Examples of org.grouplens.common.dto.Dto.Named.singular()

  }

  private static String translateFieldName(Field f) {
    Named named = f.getAnnotation(Named.class);
    if (named != null) {
      return f.getType().isArray() ? named.plural() : named.singular();
    } else {
      return f.getName();
    }
  }
View Full Code Here

Examples of org.grouplens.common.dto.Dto.Named.singular()

  }

  private static String getDtoSingularName(Class<? extends Dto> type) {
    Named name = type.getAnnotation(Named.class);
    if (name != null) {
      return name.singular();
    } else {
      // if the first letter is capitalized, make it lower case.
      String derived = type.getSimpleName();
      String suffix = "Dto";
      derived = Character.toLowerCase(derived.charAt(0)) + derived.substring(1);
View Full Code Here

Examples of scriptingLanguage.Token.singular()

    if (method.getCarType().equals(Interpreter.superType)) { //Then this is really easy because we already have the constructor
      method = method.getNextToken();
      Token params = (Token) method.getCar();
      if (!params.isNull())
        do {
          head = head.append(params.singular());
        } while (!(params = params.getNextToken()).getCarType().equals(Interpreter.endLineType) && !params.isNull());
      method = method.getNextToken();
    }
    else
      superLine = new Token();
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.