Examples of Scalar


Examples of com.mdimension.jchronic.tags.Scalar

    List<Token> tokens = new LinkedList<Token>();
    tokens.add(new Token("3"));
    tokens.add(new Token("years"));
    tokens.add(new Token("past"));
   
    tokens.get(0).tag(new Scalar(Integer.valueOf(3)));
    tokens.get(1).tag(new RepeaterYear());
    tokens.get(2).tag(new Pointer(Pointer.PointerType.PAST));
   
    assertTrue(handler.match(tokens, Handler.definitions()));
  }
View Full Code Here

Examples of com.mdimension.jchronic.tags.Scalar

    assertFalse(token.isTagged());
    token.tag(new StringTag("mytag"));
    assertEquals(1, token.getTags().size());
    assertTrue(token.isTagged());
    assertEquals(StringTag.class, token.getTag(StringTag.class).getClass());
    token.tag(new Scalar(Integer.valueOf(5)));
    assertEquals(2, token.getTags().size());
    token.untag(StringTag.class);
    assertEquals(1, token.getTags().size());
    assertEquals("foo", token.getWord());
  }
View Full Code Here

Examples of com.tll.model.Scalar

      final String pname = pd.getName();
      if(bw.isWritableProperty(pname)) {
        map.put(pname, bw.getPropertyValue(pname));
      }
    }
    return new Scalar(entity.entityClass(), map);
  }
View Full Code Here

Examples of com.tll.model.Scalar

      final String pname = pd.getName();
      if(bw.isWritableProperty(pname)) {
        map.put(pname, bw.getPropertyValue(pname));
      }
    }
    return new Scalar(entity.entityClass(), map);
  }
View Full Code Here

Examples of er.chronic.tags.Scalar

    List<Token> tokens = new LinkedList<Token>();
    tokens.add(new Token("3"));
    tokens.add(new Token("years"));
    tokens.add(new Token("past"));
   
    tokens.get(0).tag(new Scalar(Integer.valueOf(3)));
    tokens.get(1).tag(new RepeaterYear());
    tokens.get(2).tag(new Pointer(Pointer.PointerType.PAST));
   
    assertTrue(handler.match(tokens, Handler.definitions(_options)));
  }
View Full Code Here

Examples of er.chronic.tags.Scalar

    assertFalse(token.isTagged());
    token.tag(new StringTag("mytag"));
    assertEquals(1, token.getTags().size());
    assertTrue(token.isTagged());
    assertEquals(StringTag.class, token.getTag(StringTag.class).getClass());
    token.tag(new Scalar(Integer.valueOf(5)));
    assertEquals(2, token.getTags().size());
    token.untag(StringTag.class);
    assertEquals(1, token.getTags().size());
    assertEquals("foo", token.getWord());
  }
View Full Code Here

Examples of io.crate.metadata.Scalar

                    WrappedArgument argument = getArgument((Map<String, Object>)arg);
                    argumentTypes.add(argument.getType());
                    wrappedArgs.add(argument);
                }
            }
            Scalar scalar = getScalar(scalarName, argumentTypes);
            if (scalar == null) {
                throw new ScriptException(String.format("Cannot resolve function %s", scalarName));
            }
            return new ScalarArgument(scalar, type, wrappedArgs);
View Full Code Here

Examples of mikera.vectorz.Scalar

    return true;
  }
 
  @Override
  public Scalar clone() {
    return new Scalar(get());
  }
View Full Code Here

Examples of mikera.vectorz.Scalar

    return true;
  }
 
  @Override
  public Scalar clone() {
    return new Scalar(get());
  }
View Full Code Here

Examples of mikera.vectorz.Scalar

    assertEquals(3.0,a.get(),0.0);
    assertEquals(1,a.elementCount());
    assertEquals(1,a.nonZeroCount());
    assertEquals(3.0,a.elementSum(),0.0);
   
    Scalar s=new Scalar(1.0);
    s.set(a);
    assertEquals(3.0,s.get(),0.0);
    s.set(2.0);
    a.set(s);
    assertEquals(2.0,a.get(),0.0);
   
  }
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.