Java Code Examples for jdk.nashorn.internal.runtime.regexp.RegExpResult#getInput()

The following examples show how to use jdk.nashorn.internal.runtime.regexp.RegExpResult#getInput() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NativeRegExpExecResult.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
NativeRegExpExecResult(final RegExpResult result, final Global global) {
    super(global.getArrayPrototype(), $nasgenmap$);
    setIsArray();
    this.setArray(ArrayData.allocate(result.getGroups().clone()));
    this.index = result.getIndex();
    this.input = result.getInput();
}
 
Example 2
Source File: NativeRegExpExecResult.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
NativeRegExpExecResult(final RegExpResult result, final Global global) {
    super(global.getArrayPrototype(), $nasgenmap$);
    setIsArray();
    this.setArray(ArrayData.allocate(result.getGroups().clone()));
    this.index = result.getIndex();
    this.input = result.getInput();
}
 
Example 3
Source File: NativeRegExpExecResult.java    From nashorn with GNU General Public License v2.0 5 votes vote down vote up
NativeRegExpExecResult(final RegExpResult result, final Global global) {
    super(global.getArrayPrototype(), global.getRegExpExecResultMap());
    setIsArray();
    this.setArray(ArrayData.allocate(result.getGroups().clone()));
    this.index = result.getIndex();
    this.input = result.getInput();
}
 
Example 4
Source File: NativeRegExpExecResult.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
NativeRegExpExecResult(final RegExpResult result, final Global global) {
    super(global.getArrayPrototype(), $nasgenmap$);
    setIsArray();
    this.setArray(ArrayData.allocate(result.getGroups().clone()));
    this.index = result.getIndex();
    this.input = result.getInput();
}
 
Example 5
Source File: NativeRegExpExecResult.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
NativeRegExpExecResult(final RegExpResult result, final Global global) {
    super(global.getArrayPrototype(), $nasgenmap$);
    setIsArray();
    this.setArray(ArrayData.allocate(result.getGroups().clone()));
    this.index = result.getIndex();
    this.input = result.getInput();
}
 
Example 6
Source File: NativeRegExpExecResult.java    From jdk8u_nashorn with GNU General Public License v2.0 5 votes vote down vote up
NativeRegExpExecResult(final RegExpResult result, final Global global) {
    super(global.getArrayPrototype(), $nasgenmap$);
    setIsArray();
    this.setArray(ArrayData.allocate(result.getGroups().clone()));
    this.index = result.getIndex();
    this.input = result.getInput();
}
 
Example 7
Source File: NativeRegExpExecResult.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
NativeRegExpExecResult(final RegExpResult result, final Global global) {
    super(global.getArrayPrototype(), $nasgenmap$);
    setIsArray();
    this.setArray(ArrayData.allocate(result.getGroups().clone()));
    this.index = result.getIndex();
    this.input = result.getInput();
}
 
Example 8
Source File: NativeRegExpExecResult.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
NativeRegExpExecResult(final RegExpResult result, final Global global) {
    super(global.getArrayPrototype(), $nasgenmap$);
    setIsArray();
    this.setArray(ArrayData.allocate(result.getGroups().clone()));
    this.index = result.getIndex();
    this.input = result.getInput();
}
 
Example 9
Source File: NativeRegExpExecResult.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
NativeRegExpExecResult(final RegExpResult result, final Global global) {
    super(global.getArrayPrototype(), global.getRegExpExecResultMap());
    setIsArray();
    this.setArray(ArrayData.allocate(result.getGroups().clone()));
    this.index = result.getIndex();
    this.input = result.getInput();
}
 
Example 10
Source File: NativeRegExpExecResult.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
NativeRegExpExecResult(final RegExpResult result, final Global global) {
    super(global.getArrayPrototype(), global.getRegExpExecResultMap());
    setIsArray();
    this.setArray(ArrayData.allocate(result.getGroups().clone()));
    this.index = result.getIndex();
    this.input = result.getInput();
}
 
Example 11
Source File: NativeRegExp.java    From nashorn with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.input property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "input")
public static Object getLastInput(Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getInput();
}
 
Example 12
Source File: NativeRegExp.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.input property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "input")
public static Object getLastInput(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getInput();
}
 
Example 13
Source File: NativeRegExp.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.input property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "input")
public static Object getLastInput(Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getInput();
}
 
Example 14
Source File: NativeRegExp.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.input property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "input")
public static Object getLastInput(Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getInput();
}
 
Example 15
Source File: NativeRegExp.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.input property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "input")
public static Object getLastInput(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getInput();
}
 
Example 16
Source File: NativeRegExp.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.input property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "input")
public static Object getLastInput(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getInput();
}
 
Example 17
Source File: NativeRegExp.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.input property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "input")
public static Object getLastInput(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getInput();
}
 
Example 18
Source File: NativeRegExp.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.input property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "input")
public static Object getLastInput(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getInput();
}
 
Example 19
Source File: NativeRegExp.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.input property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "input")
public static Object getLastInput(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getInput();
}
 
Example 20
Source File: NativeRegExp.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.input property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "input")
public static Object getLastInput(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getInput();
}