本文整理汇总了Java中jdk.nashorn.internal.runtime.regexp.RegExpResult.getGroup方法的典型用法代码示例。如果您正苦于以下问题:Java RegExpResult.getGroup方法的具体用法?Java RegExpResult.getGroup怎么用?Java RegExpResult.getGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jdk.nashorn.internal.runtime.regexp.RegExpResult
的用法示例。
在下文中一共展示了RegExpResult.getGroup方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getLastMatch
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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);
}
示例2: getGroup1
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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);
}
示例3: getGroup2
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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);
}
示例4: getGroup3
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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);
}
示例5: getGroup4
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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(final Object self) {
final RegExpResult match = Global.instance().getLastRegExpResult();
return match == null ? "" : match.getGroup(4);
}
示例6: getGroup5
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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);
}
示例7: getGroup6
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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);
}
示例8: getGroup7
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* Getter for non-standard RegExp.$7 property.
* @param self self object
* @return last regexp input
*/
@Getter(where = Where.CONSTRUCTOR, attributes = Attribute.CONSTANT, name = "$7")
public static Object getGroup7(final Object self) {
final RegExpResult match = Global.instance().getLastRegExpResult();
return match == null ? "" : match.getGroup(7);
}
示例9: getGroup8
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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);
}
示例10: getGroup9
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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);
}
示例11: getLastMatch
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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(Object self) {
final RegExpResult match = Global.instance().getLastRegExpResult();
return match == null ? "" : match.getGroup(0);
}
示例12: getGroup1
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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);
}
示例13: getGroup2
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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(Object self) {
final RegExpResult match = Global.instance().getLastRegExpResult();
return match == null ? "" : match.getGroup(2);
}
示例14: getGroup3
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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(Object self) {
final RegExpResult match = Global.instance().getLastRegExpResult();
return match == null ? "" : match.getGroup(3);
}
示例15: getGroup4
import jdk.nashorn.internal.runtime.regexp.RegExpResult; //导入方法依赖的package包/类
/**
* 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);
}