RegExpLiteral re = new RegExpLiteral(pos, end - pos); re.setValue(ts.getString()); re.setFlags(ts.readAndClearRegExpFlags()); return re;
public String getFlags() { return node.getFlags(); } }
public ASTRegExpLiteral(RegExpLiteral regExpLiteral) { super(regExpLiteral); super.setImage(regExpLiteral.getValue()); }
/** * Sets the regexp string without delimiters * @throws IllegalArgumentException} if value is {@code null} */ public void setValue(String value) { assertNotNull(value); this.value = value; }
/** * Called by IRFactory to add a RegExp to the regexp table. */ public void addRegExp(RegExpLiteral re) { if (re == null) codeBug(); if (regexps == null) regexps = new ArrayList<RegExpLiteral>(); regexps.add(re); re.putIntProp(REGEXP_PROP, regexps.size() - 1); }
@Override public String toSource(int depth) { return makeIndent(depth) + "/" + value + "/" + (flags == null ? "" : flags); }
RegExpLiteral re = new RegExpLiteral(pos, end - pos); re.setValue(ts.getString()); re.setFlags(ts.readAndClearRegExpFlags()); return re;
public String getRegexpFlags(int index) { return regexps.get(index).getFlags(); }
public String getRegexpString(int index) { return regexps.get(index).getValue(); }
/** * Sets the regexp string without delimiters * @throws IllegalArgumentException} if value is {@code null} */ public void setValue(String value) { assertNotNull(value); this.value = value; }
/** * Called by IRFactory to add a RegExp to the regexp table. */ public void addRegExp(RegExpLiteral re) { if (re == null) codeBug(); if (regexps == null) regexps = new ArrayList<RegExpLiteral>(); regexps.add(re); re.putIntProp(REGEXP_PROP, regexps.size() - 1); }
@Override public String toSource(int depth) { return makeIndent(depth) + "/" + value + "/" + (flags == null ? "" : flags); }
RegExpLiteral re = new RegExpLiteral(pos, end - pos); re.setValue(ts.getString()); re.setFlags(ts.readAndClearRegExpFlags()); return re;
public String getRegexpFlags(int index) { return regexps.get(index).getFlags(); }
public String getRegexpString(int index) { return regexps.get(index).getValue(); }
/** * Sets the regexp string without delimiters * @throws IllegalArgumentException} if value is {@code null} */ public void setValue(String value) { assertNotNull(value); this.value = value; }
/** * Called by IRFactory to add a RegExp to the regexp table. */ public void addRegExp(RegExpLiteral re) { if (re == null) codeBug(); if (regexps == null) regexps = new ArrayList<RegExpLiteral>(); regexps.add(re); re.putIntProp(REGEXP_PROP, regexps.size() - 1); }
@Override public String toSource(int depth) { return makeIndent(depth) + "/" + value + "/" + (flags == null ? "" : flags); }