Java Code Examples for jdk.nashorn.internal.objects.annotations.Attribute#NON_ENUMERABLE_CONSTANT

The following examples show how to use jdk.nashorn.internal.objects.annotations.Attribute#NON_ENUMERABLE_CONSTANT . 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 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.3 ignoreCase
 *
 * @param self self reference
 * @return true if this regexp if flagged to ignore case, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object ignoreCase(final Object self) {
    return checkRegExp(self).getRegExp().isIgnoreCase();
}
 
Example 2
Source File: NativeRegExp.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.4 multiline
 *
 * @param self self reference
 * @return true if this regexp is flagged to be multiline, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object multiline(final Object self) {
    return checkRegExp(self).getRegExp().isMultiline();
}
 
Example 3
Source File: NativeRegExp.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.3 ignoreCase
 *
 * @param self self reference
 * @return true if this regexp if flagged to ignore case, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object ignoreCase(final Object self) {
    return checkRegExp(self).getRegExp().isIgnoreCase();
}
 
Example 4
Source File: NativeRegExp.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.2 global
 *
 * @param self self reference
 * @return true if this regexp is flagged global, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object global(final Object self) {
    return checkRegExp(self).getRegExp().isGlobal();
}
 
Example 5
Source File: NativeRegExp.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.1 source
 *
 * @param self self reference
 * @return the input string for the regexp
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object source(final Object self) {
    return checkRegExp(self).getRegExp().getSource();
}
 
Example 6
Source File: NativeRegExp.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.4 multiline
 *
 * @param self self reference
 * @return true if this regexp is flagged to be multiline, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object multiline(final Object self) {
    return checkRegExp(self).getRegExp().isMultiline();
}
 
Example 7
Source File: NativeRegExp.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.3 ignoreCase
 *
 * @param self self reference
 * @return true if this regexp if flagged to ignore case, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object ignoreCase(final Object self) {
    return checkRegExp(self).getRegExp().isIgnoreCase();
}
 
Example 8
Source File: NativeRegExp.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.2 global
 *
 * @param self self reference
 * @return true if this regexp is flagged global, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object global(final Object self) {
    return checkRegExp(self).getRegExp().isGlobal();
}
 
Example 9
Source File: NativeRegExp.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.1 source
 *
 * @param self self reference
 * @return the input string for the regexp
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object source(final Object self) {
    return checkRegExp(self).getRegExp().getSource();
}
 
Example 10
Source File: NativeRegExp.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.4 multiline
 *
 * @param self self reference
 * @return true if this regexp is flagged to be multiline, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object multiline(final Object self) {
    return checkRegExp(self).getRegExp().isMultiline();
}
 
Example 11
Source File: NativeRegExp.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.1 source
 *
 * @param self self reference
 * @return the input string for the regexp
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object source(final Object self) {
    return checkRegExp(self).getRegExp().getSource();
}
 
Example 12
Source File: NativeRegExp.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.2 global
 *
 * @param self self reference
 * @return true if this regexp is flagged global, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object global(final Object self) {
    return checkRegExp(self).getRegExp().isGlobal();
}
 
Example 13
Source File: NativeRegExp.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.1 source
 *
 * @param self self reference
 * @return the input string for the regexp
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object source(final Object self) {
    return checkRegExp(self).getRegExp().getSource();
}
 
Example 14
Source File: NativeRegExp.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.4 multiline
 *
 * @param self self reference
 * @return true if this regexp is flagged to be multiline, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object multiline(final Object self) {
    return checkRegExp(self).getRegExp().isMultiline();
}
 
Example 15
Source File: NativeRegExp.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.3 ignoreCase
 *
 * @param self self reference
 * @return true if this regexp if flagged to ignore case, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object ignoreCase(final Object self) {
    return checkRegExp(self).getRegExp().isIgnoreCase();
}
 
Example 16
Source File: NativeRegExp.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.2 global
 *
 * @param self self reference
 * @return true if this regexp is flagged global, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object global(final Object self) {
    return checkRegExp(self).getRegExp().isGlobal();
}
 
Example 17
Source File: NativeRegExp.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.1 source
 *
 * @param self self reference
 * @return the input string for the regexp
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object source(final Object self) {
    return checkRegExp(self).getRegExp().getSource();
}
 
Example 18
Source File: NativeRegExp.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.4 multiline
 *
 * @param self self reference
 * @return true if this regexp is flagged to be multiline, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object multiline(final Object self) {
    return checkRegExp(self).getRegExp().isMultiline();
}
 
Example 19
Source File: NativeRegExp.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.3 ignoreCase
 *
 * @param self self reference
 * @return true if this regexp if flagged to ignore case, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object ignoreCase(final Object self) {
    return checkRegExp(self).getRegExp().isIgnoreCase();
}
 
Example 20
Source File: NativeRegExp.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * ECMA 15.10.7.2 global
 *
 * @param self self reference
 * @return true if this regexp is flagged global, false otherwise
 */
@Getter(attributes = Attribute.NON_ENUMERABLE_CONSTANT)
public static Object global(final Object self) {
    return checkRegExp(self).getRegExp().isGlobal();
}