Examples of StringLiteral


Examples of org.jruby.ast.java_signature.StringLiteral

  { yyVal = new ArrayList<AnnotationParameter>(); }
  break;
case 143:
          // line 600 "src/org/jruby/parser/JavaSignatureParser.y"
  {
           yyVal = new StringLiteral(((String)yyVals[0+yyTop]));
        }
  break;
case 144:
          // line 603 "src/org/jruby/parser/JavaSignatureParser.y"
  {
View Full Code Here

Examples of org.jruby.compiler.ir.operands.StringLiteral

        super((IRScope) null, null, sourceName, staticScope);
        dummyClass = new IRClass(this, null, null, "__SCRIPT_ROOT__", staticScope);
    }

    public Operand getFileName() {
        return new StringLiteral(getName());
    }
View Full Code Here

Examples of org.jruby.ir.operands.StringLiteral

    public Object interpret(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp, Block block) {
        IRubyObject value = (IRubyObject) getObject().retrieve(context, self, currDynScope, temp);
        String name = getName().string;
        RubyString definedType = RuntimeHelpers.getDefinedConstantOrBoundMethod(value, name);
       
        return definedType == null ? context.nil : new StringLiteral(definedType.getByteList()).retrieve(context, self, currDynScope, temp);
    }
View Full Code Here

Examples of org.lilystudio.javascript.expression.StringLiteral

    case Token.FALSE:
    case Token.NULL:
      return new InbuildLiteral(node, root, scope);

    case Token.STRING:
      return new StringLiteral(node, root, scope);

    case Token.NUMBER:
      return new NumericLiteral(node, root, scope);

    case Token.REGEXP:
View Full Code Here

Examples of org.mozilla.javascript.ast.StringLiteral

     * Return string literal value.
     */
    private String stringLiteral(final AstNode node) {
      checkState(node instanceof StringLiteral, node, "Expected string literal only");
      //noinspection ConstantConditions
      StringLiteral string = (StringLiteral) node;
      return string.getValue();
    }
View Full Code Here

Examples of org.pdf4j.saxon.expr.StringLiteral

     * @param visitor an expression visitor
     */

    public Expression preEvaluate(ExpressionVisitor visitor) throws XPathException {
        final XPathContext context = visitor.getStaticContext().makeEarlyEvaluationContext();
        return new StringLiteral(
            unicodeToString(argument[0].iterate(context), context));
    }
View Full Code Here

Examples of org.springframework.expression.spel.ast.StringLiteral

    } else if (peekIdentifierToken("true")) {
      push(new BooleanLiteral(t.data,toPos(t),true));
    } else if (peekIdentifierToken("false")) {
      push(new BooleanLiteral(t.data,toPos(t),false));
    } else if (t.kind==TokenKind.LITERAL_STRING) {
      push(new StringLiteral(t.data,toPos(t),t.data));
    } else {
      return false;     
    }
    nextToken();
    return true;
View Full Code Here

Examples of rocket.generator.rebind.codeblock.StringLiteral

      if (Constants.FIELD_SETTER.equals(name)) {
        value = this.getFieldSetter();
        break;
      }
      if (Constants.JAVASCRIPT_PROPERTY_NAME.equals(name)) {
        value = new StringLiteral(this.getJavascriptPropertyName());
        break;
      }
      if (Constants.SERIALIZER.equals(name)) {
        value = this.getSerializer();
        break;
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.