Class CompileRegexNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.CompileRegexNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class CompileRegexNode extends JavaScriptBaseNode
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node

    com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final Object
    compile(Object pattern)
     
    final Object
    compile(Object pattern, Object flags)
     
    create(JSContext context)
     
    protected Object
    doCompile(com.oracle.truffle.api.strings.TruffleString pattern, com.oracle.truffle.api.strings.TruffleString flags, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaString)
     
    protected Object
    doCompileNoTrimCache(com.oracle.truffle.api.strings.TruffleString pattern, com.oracle.truffle.api.strings.TruffleString flags, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaString)
     
    protected abstract Object
    executeCompile(Object pattern, Object flags)
     
    protected Object
    getCached(com.oracle.truffle.api.strings.TruffleString pattern, com.oracle.truffle.api.strings.TruffleString flags, com.oracle.truffle.api.strings.TruffleString cachedPattern, com.oracle.truffle.api.strings.TruffleString cachedFlags, com.oracle.truffle.api.utilities.AssumedValue<Object> cachedCompiledRegex, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode2, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaString)
     
    protected static boolean
    stringEquals(com.oracle.truffle.api.strings.TruffleString.EqualNode node, com.oracle.truffle.api.strings.TruffleString a, com.oracle.truffle.api.strings.TruffleString b)
     

    Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode

    copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace

    Methods inherited from class com.oracle.truffle.api.nodes.Node

    accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CompileRegexNode

      protected CompileRegexNode(JSContext context)
  • Method Details

    • create

      public static CompileRegexNode create(JSContext context)
    • compile

      public final Object compile(Object pattern)
    • compile

      public final Object compile(Object pattern, Object flags)
    • executeCompile

      protected abstract Object executeCompile(Object pattern, Object flags)
    • getCached

      protected Object getCached(com.oracle.truffle.api.strings.TruffleString pattern, com.oracle.truffle.api.strings.TruffleString flags, com.oracle.truffle.api.strings.TruffleString cachedPattern, com.oracle.truffle.api.strings.TruffleString cachedFlags, com.oracle.truffle.api.utilities.AssumedValue<Object> cachedCompiledRegex, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode2, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaString)
    • stringEquals

      protected static boolean stringEquals(com.oracle.truffle.api.strings.TruffleString.EqualNode node, com.oracle.truffle.api.strings.TruffleString a, com.oracle.truffle.api.strings.TruffleString b)
    • doCompileNoTrimCache

      protected Object doCompileNoTrimCache(com.oracle.truffle.api.strings.TruffleString pattern, com.oracle.truffle.api.strings.TruffleString flags, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaString)
    • doCompile

      protected Object doCompile(com.oracle.truffle.api.strings.TruffleString pattern, com.oracle.truffle.api.strings.TruffleString flags, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaString)