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

The following are Jave code examples for showing how to use NON_ENUMERABLE_CONSTANT of the jdk.nashorn.internal.objects.annotations.Attribute class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: OpenJSharp   File: NativeRegExp.java   Source Code and License Vote up 2 votes
/**
 * 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 2
Project: OpenJSharp   File: NativeRegExp.java   Source Code and License Vote up 2 votes
/**
 * 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 3
Project: OpenJSharp   File: NativeRegExp.java   Source Code and License Vote up 2 votes
/**
 * 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
Project: OpenJSharp   File: NativeRegExp.java   Source Code and License Vote up 2 votes
/**
 * 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 5
Project: openjdk-jdk10   File: NativeRegExp.java   Source Code and License Vote up 2 votes
/**
 * 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
Project: openjdk-jdk10   File: NativeRegExp.java   Source Code and License Vote up 2 votes
/**
 * 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 7
Project: openjdk-jdk10   File: NativeRegExp.java   Source Code and License Vote up 2 votes
/**
 * 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
Project: openjdk-jdk10   File: NativeRegExp.java   Source Code and License Vote up 2 votes
/**
 * 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();
}