Examples of Token


Examples of org.apache.felix.gogo.runtime.Token

    public void testParser() throws Exception
    {
        new Parser("// comment\n" + "a=\"who's there?\"; ps -ef;\n" + "ls | \n grep y\n").program();
        String p1 = "a=1 \\$b=2 c={closure}\n";
        new Parser(p1).program();
        new Parser(new Token(Type.ARRAY, p1, (short) 0, (short) 0)).program();
    }
View Full Code Here

Examples of org.apache.flex.forks.velocity.runtime.parser.Token

        /*
         *  eat the args
         */
        int i = 0;
        Token t = null;
        Token tLast = null;
   
        while( i <  numArgs )
        {
            args[i] = "";
            /*
 
View Full Code Here

Examples of org.apache.hadoop.chukwa.extraction.engine.Token

        if (token != null) {
          workingDay = res.day;
          workingHour = res.hour;
          startRawIndex = res.rawIndex;
        } else {
          token = new Token();
        }

        log.debug("workingDay " + workingDay);
        log.debug("workingHour " + workingHour);
View Full Code Here

Examples of org.apache.hadoop.security.token.Token

                                   RpcCallback<SecureBulkLoadHFilesResponse> done) {
    final List<Pair<byte[], String>> familyPaths = new ArrayList<Pair<byte[], String>>();
    for(ClientProtos.BulkLoadHFileRequest.FamilyPath el : request.getFamilyPathList()) {
      familyPaths.add(new Pair(el.getFamily().toByteArray(),el.getPath()));
    }
    final Token userToken =
        new Token(request.getFsToken().getIdentifier().toByteArray(),
                  request.getFsToken().getPassword().toByteArray(),
                  new Text(request.getFsToken().getKind()),
                  new Text(request.getFsToken().getService()));
    final String bulkToken = request.getBulkToken();
    User user = getActiveUser();
View Full Code Here

Examples of org.apache.hadoop.yarn.api.records.Token

      LOG.info("Container started by MyContainerManager: " + request);
      launched = true;
      Map<String, String> env =
          request.getContainerLaunchContext().getEnvironment();

      Token containerToken = request.getContainerToken();
      ContainerTokenIdentifier tokenId = null;

      try {
        tokenId = BuilderUtils.newContainerTokenIdentifier(containerToken);
      } catch (IOException e) {
View Full Code Here

Examples of org.apache.james.mime4j.field.address.parser.Token

    return new Mailbox(route, localPart, domain);   
  }


  private String buildString(SimpleNode node, boolean stripSpaces) {
    Token head = node.firstToken;
    Token tail = node.lastToken;
    StringBuffer out = new StringBuffer();
   
    while (head != tail) {
      out.append(head.image);
      head = head.next;
View Full Code Here

Examples of org.apache.jena.riot.tokens.Token

    static protected final Node nodeSameAs     = OWL.sameAs.asNode() ;
    static protected final Node nodeLogImplies = NodeFactory.createURI("http://www.w3.org/2000/10/swap/log#implies") ;

    /** Get predicate - maybe null for "illegal" */
    protected final Node predicate() {
        Token t = peekToken() ;

        if ( t.hasType(TokenType.KEYWORD) ) {
            boolean strict = profile.isStrictMode() ;
            Token tErr = peekToken() ;
            String image = peekToken().getImage() ;
            if ( image.equals(KW_A) )
                return NodeConst.nodeRDFType ;
            if ( !strict && image.equals(KW_SAME_AS) )
                return nodeSameAs ;
View Full Code Here

Examples of org.apache.jsieve.parser.generated.Token

    public void testASTargumentTag() throws Exception {
        String tag = "Hugo";
        mock.expects(once()).method("argument").with(eq(tag));
        ASTargument argument = new ASTargument(SieveParserTreeConstants.JJTARGUMENTS);
        argument.setValue(new TagArgument(new Token(0, tag)));
        subject.start(argument);
        subject.end(argument);
    }
View Full Code Here

Examples of org.apache.jsieve.parser.generated.address.Token

            return data;
        }

        private String contents(AddressNode node) {
            StringBuffer buffer = new StringBuffer(32);
            Token last = node.lastToken;
            Token next = node.firstToken;
            while (next != last) {
                buffer.append(next.image);
                next = next.next;
            }
            buffer.append(last.image);
View Full Code Here

Examples of org.apache.lucene.analysis.Token

  // overridden
  public Token next() throws IOException {
    if (mIter.hasNext()) {
      String text = (String) mIter.next();
      return new Token(text, 0, text.length());
    } else {
      return null;
    }
  }
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.