Ejemplo n.º 1
0
  public final SephObject get(String name) {
    name = name.intern();

    if (name == this.selector0) return this.cell0;
    SephObject result;
    for (ISeq s = this.parents.seq(); s != null; s = s.next()) {
      result = ((SephObject) s.first()).get(name);
      if (result != null) return result;
    }
    return null;
  }
Ejemplo n.º 2
0
  public final SephObject get(String name) {
    name = name.intern();

    if (name == this.selector0) return this.cell0;
    if (name == this.selector1) return this.cell1;
    if (name == this.selector2) return this.cell2;
    if (name == this.selector3) return this.cell3;
    if (name == this.selector4) return this.cell4;
    if (name == this.selector5) return this.cell5;
    if (name == this.selector6) return this.cell6;
    if (name == this.selector7) return this.cell7;
    SephObject result;
    for (ISeq s = this.parents.seq(); s != null; s = s.next()) {
      result = ((SephObject) s.first()).get(name);
      if (result != null) return result;
    }
    return null;
  }