Sha256: 9bbadc9e603932f5f3cddc8e90c0bc6f8306e65b2bb3f919d9639f2e37d294f1

Contents?: true

Size: 862 Bytes

Versions: 135

Compression:

Stored size: 862 Bytes

Contents

/**
 * Copyright 2005-2007 Xue Yong Zhi
 * Distributed under the BSD License
 */

package com.xruby.compiler.codedom;

public class SymbolExpression extends Expression {
    private String value_;
    private StringExpressionWithExpressionSubstitution str_;//e.g. :"#{1}"

    public SymbolExpression(String value) {
        value_ = value;
    }

    public SymbolExpression(StringExpressionWithExpressionSubstitution str) {
        str_ = str;
    }

    //FIXME value_ may be null, and in that case str_ should be used.
    public String getValue() {
        return value_;
    }

    public void accept(CodeVisitor visitor) {
        if (null != value_) {
            visitor.visitSymbolExpression(value_);
        } else {
            str_.accept(visitor);
            visitor.visitSymbolExpression(null);
        }
    }
}

Version data entries

135 entries across 135 versions & 2 rubygems

Version Path
rhodes-7.6.0 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-7.5.1 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-7.4.1 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-7.1.17 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-6.2.0 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-6.0.11 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-5.5.18 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-5.5.17 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-5.5.15 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-5.5.0.22 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-5.5.2 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-5.5.0.7 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-5.5.0.3 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-5.5.0 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
tauplatform-1.0.3 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
tauplatform-1.0.2 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
tauplatform-1.0.1 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-3.5.1.12 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-3.3.5 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java
rhodes-3.4.2 platform/shared/xruby/src/com/xruby/compiler/codedom/SymbolExpression.java