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

The following examples show how to use jdk.nashorn.internal.runtime.regexp.RegExpResult#getGroup() . 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: NativeRegExp.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.lastMatch property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "lastMatch")
public static Object getLastMatch(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(0);
}
 
Example 2
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.$9 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$9")
public static Object getGroup9(Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(9);
}
 
Example 3
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.$1 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$1")
public static Object getGroup1(Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(1);
}
 
Example 4
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.$9 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$9")
public static Object getGroup9(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(9);
}
 
Example 5
Source File: NativeRegExp.java    From nashorn with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.$6 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$6")
public static Object getGroup6(Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(6);
}
 
Example 6
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.$2 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$2")
public static Object getGroup2(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(2);
}
 
Example 7
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.$5 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$5")
public static Object getGroup5(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(5);
}
 
Example 8
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.$9 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$9")
public static Object getGroup9(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(9);
}
 
Example 9
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.$5 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$5")
public static Object getGroup5(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(5);
}
 
Example 10
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.$9 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$9")
public static Object getGroup9(Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(9);
}
 
Example 11
Source File: NativeRegExp.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.$1 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$1")
public static Object getGroup1(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(1);
}
 
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.$2 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$2")
public static Object getGroup2(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(2);
}
 
Example 13
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.$8 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$8")
public static Object getGroup8(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(8);
}
 
Example 14
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.$3 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$3")
public static Object getGroup3(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(3);
}
 
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.$8 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$8")
public static Object getGroup8(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(8);
}
 
Example 16
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.$4 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$4")
public static Object getGroup4(Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(4);
}
 
Example 17
Source File: NativeRegExp.java    From nashorn with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter for non-standard RegExp.$5 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$5")
public static Object getGroup5(Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(5);
}
 
Example 18
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.$8 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$8")
public static Object getGroup8(Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(8);
}
 
Example 19
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.$8 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$8")
public static Object getGroup8(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(8);
}
 
Example 20
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.$6 property.
 * @param self self object
 * @return last regexp input
 */
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$6")
public static Object getGroup6(final Object self) {
    final RegExpResult match = Global.instance().getLastRegExpResult();
    return match == null ? "" : match.getGroup(6);
}