Examples of StringToken


Examples of com.google.dart.engine.scanner.StringToken

* @coverage dart.engine.ast
*/
public class EphemeralIdentifier extends SimpleIdentifier {

  public EphemeralIdentifier(AstNode parent, int location) {
    super(new StringToken(TokenType.IDENTIFIER, "", location));
    parent.becomeParentOf(this);
  }
View Full Code Here

Examples of com.googlecode.aviator.lexer.token.StringToken

            final Number value = (Number) operand.getValue(null);
            token = new NumberToken(value, value.toString());
            break;
        case String:
            final String str = (String) operand.getValue(null);
            token = new StringToken(str, -1);
            break;
        case Pattern:
            token = new PatternToken(((AviatorPattern) operand).getPattern().pattern(), -1);
            break;
        }
View Full Code Here

Examples of com.jitcaforwin.extended.impl.internal.artist.parser.tokens.StringToken

  private static void addToken(String str, List<Token> tokens) {
    if (dividers.contains(str)) {
      tokens.add(new DividerToken());
    } else {
      tokens.add(new StringToken(str));
    }
  }
View Full Code Here

Examples of com.jitcaforwin.extended.internal.artist.parser.tokens.StringToken

  private static void addToken(String str, List<Token> tokens) {
    if (dividers.contains(str)) {
      tokens.add(new DividerToken());
    } else {
      tokens.add(new StringToken(str));
    }
  }
View Full Code Here

Examples of com.sun.msv.verifier.regexp.StringToken

            } catch( Abort a ) {
                continue;    // abort further check. this error is already reported.
            }
                   
            // tests if the default value matches the content model of this attribute
            StringToken token = new StringToken(resCalc,value,null,null);
            if(!resCalc.calcResidual( exp.exp, token ).isEpsilonReducible() ) {
                // the default value was rejected by the content model.
                reportCompError(
                    new Locator[]{reader.getDeclaredLocationOf(exp)},
                    CERR_DEFVALUE_INVALID, new Object[]{value});
View Full Code Here

Examples of org.apache.cassandra.dht.StringToken

        AbstractReplicationStrategy strategy = new RackUnawareStrategy(tmd, partitioner, 3);

        List<Token> endPointTokens = new ArrayList<Token>();
        List<Token> keyTokens = new ArrayList<Token>();
        for (int i = 0; i < 5; i++) {
            endPointTokens.add(new StringToken(String.valueOf((char)('a' + i * 2))));
            keyTokens.add(partitioner.getToken(String.valueOf((char)('a' + i * 2 + 1))));
        }
        testGetEndpoints(tmd, strategy, endPointTokens.toArray(new Token[0]), keyTokens.toArray(new Token[0]));
    }
View Full Code Here

Examples of org.apache.cassandra.dht.StringToken

        AbstractReplicationStrategy strategy = new RackUnawareStrategy(tmd, partitioner, 3);

        List<Token> endPointTokens = new ArrayList<Token>();
        List<Token> keyTokens = new ArrayList<Token>();
        for (int i = 0; i < 5; i++) {
            endPointTokens.add(new StringToken(String.valueOf((char)('a' + i * 2))));
            keyTokens.add(partitioner.getToken(String.valueOf((char)('a' + i * 2 + 1))));
        }
        testGetEndpoints(tmd, strategy, endPointTokens.toArray(new Token[0]), keyTokens.toArray(new Token[0]));
    }
View Full Code Here

Examples of org.restlet.ext.rdf.internal.turtle.StringToken

                blankNode.getLexicalUnits().add(
                        new BlankNodeToken(parseToken()));
                break;
            case '"':
                blankNode.getLexicalUnits().add(
                        new StringToken(this, getContext()));
                break;
            case '[':
                blankNode.getLexicalUnits().add(
                        new BlankNodeToken(this, getContext()));
                break;
View Full Code Here

Examples of org.restlet.ext.rdf.internal.turtle.StringToken

                listToken.getLexicalUnits().add(
                        new BlankNodeToken(this.parseToken()));
                break;
            case '"':
                listToken.getLexicalUnits().add(
                        new StringToken(this, getContext()));
                break;
            case '[':
                listToken.getLexicalUnits().add(
                        new BlankNodeToken(this, getContext()));
                break;
View Full Code Here

Examples of org.restlet.ext.rdf.internal.turtle.StringToken

                break;
            case '_':
                lexicalUnits.add(new BlankNodeToken(parseToken()));
                break;
            case '"':
                lexicalUnits.add(new StringToken(this, context));
                break;
            case '[':
                lexicalUnits.add(new BlankNodeToken(this, context));
                break;
            case '!':
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.