Examples of token()


Examples of org.gradle.tooling.internal.consumer.DefaultCancellationTokenSource.token()

    private void runBuild(CancellationToken cancelToken, BuildLauncher buildLauncher) {
        // It is not possible to implement org.gradle.tooling.CancellationToken
        // Attempting to do so will cause Gradle to throw a class cast exception
        // somewhere.
        final DefaultCancellationTokenSource cancelSource = new DefaultCancellationTokenSource();
        buildLauncher.withCancellationToken(cancelSource.token());

        ListenerRef cancelListenerRef = cancelToken.addCancellationListener(new Runnable() {
            @Override
            public void run() {
                scheduleCancel(cancelSource);
View Full Code Here

Examples of org.jrubyparser.lexer.Lexer.token()

        String doc;
        int token = -1;
        Properties props = new Properties();
        while (lexer.advance()) {
            if (token == -1)
                token = lexer.token();
            if (token == Tokens.tDOCUMENTATION) {
                doc = "=" + lexer.getTokenBuffer().toString();
                while (lexer.advance() && (token = lexer.token()) == Tokens.tWHITESPACE) {
                }
                if (token != Tokens.kDEF)
View Full Code Here

Examples of org.netbeans.api.lexer.TokenSequence.token()

        ts.moveStart();
        int newIndent = 0;
        boolean nextIndent = false;
        TreeMap<Integer, Integer> newIdentMap = new TreeMap<Integer, Integer>(new ReverseOrderInteger());
        do {
            Token token = ts.token();
            if (token != null && token.id().ordinal() != PL_SQLLexer.WHITESPACE) {
                if (nextIndent) {
                    newIndent += indent;
                    nextIndent = false;
                }
View Full Code Here

Examples of stanfordlogic.gdl.Lexer.token()

    ByteArrayInputStream input = new ByteArrayInputStream( (new String("hello there")).getBytes() );
    SymbolTable symtab = new SymbolTable();
   
    Lexer l = new Lexer(input, symtab);
   
    assertTrue( l.token() > 255 );
    assertTrue( l.token() > 255 );
    assertEquals( -1, l.token() );
   
    assertEquals(2, symtab.size() );
  }
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.