当前位置: 首页>>代码示例>>Java>>正文


Java RegExpResult.getGroup方法代码示例

本文整理汇总了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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:RedlineResearch,项目名称:OLD-OpenJDK8,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:RedlineResearch,项目名称:OLD-OpenJDK8,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:RedlineResearch,项目名称:OLD-OpenJDK8,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:RedlineResearch,项目名称:OLD-OpenJDK8,代码行数:11,代码来源:NativeRegExp.java

示例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);
}
 
开发者ID:RedlineResearch,项目名称:OLD-OpenJDK8,代码行数:11,代码来源:NativeRegExp.java


注:本文中的jdk.nashorn.internal.runtime.regexp.RegExpResult.getGroup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。