org.jetbrains.kotlin.js.backend.ast
Class JsRegExp

java.lang.Object
  extended by HasMetadata
      extended by org.jetbrains.kotlin.js.backend.ast.SourceInfoAwareJsNode
          extended by org.jetbrains.kotlin.js.backend.ast.JsExpression
              extended by org.jetbrains.kotlin.js.backend.ast.JsLiteral
                  extended by org.jetbrains.kotlin.js.backend.ast.JsLiteral.JsValueLiteral
                      extended by org.jetbrains.kotlin.js.backend.ast.JsRegExp
All Implemented Interfaces:
JsNode

public final class JsRegExp
extends JsLiteral.JsValueLiteral


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jetbrains.kotlin.js.backend.ast.JsLiteral
JsLiteral.JsBooleanLiteral, JsLiteral.JsThisRef, JsLiteral.JsValueLiteral
 
Nested classes/interfaces inherited from class org.jetbrains.kotlin.js.backend.ast.JsExpression
JsExpression.JsExpressionHasArguments
 
Field Summary
 
Fields inherited from class org.jetbrains.kotlin.js.backend.ast.JsLiteral
FALSE, NULL, THIS, TRUE, UNDEFINED
 
Constructor Summary
JsRegExp()
           
 
Method Summary
 void accept(JsVisitor v)
          Causes this object to have the visitor visit itself and its children.
 java.lang.String getFlags()
           
 java.lang.String getPattern()
           
 void setFlags(java.lang.String suffix)
           
 void setPattern(java.lang.String re)
           
 java.lang.String toString()
           
 void traverse(JsVisitorWithContext v, JsContext ctx)
          Causes this object to have the visitor visit itself and its children.
protected
<T extends HasMetadata>
T
withMetadataFrom(T other)
           
 
Methods inherited from class org.jetbrains.kotlin.js.backend.ast.JsLiteral.JsValueLiteral
deepCopy, isLeaf
 
Methods inherited from class org.jetbrains.kotlin.js.backend.ast.JsLiteral
getBoolean
 
Methods inherited from class org.jetbrains.kotlin.js.backend.ast.JsExpression
makeStmt, source
 
Methods inherited from class org.jetbrains.kotlin.js.backend.ast.SourceInfoAwareJsNode
acceptChildren, getSource, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsRegExp

public JsRegExp()
Method Detail

getFlags

public java.lang.String getFlags()

getPattern

public java.lang.String getPattern()

setFlags

public void setFlags(java.lang.String suffix)

setPattern

public void setPattern(java.lang.String re)

accept

public void accept(JsVisitor v)
Description copied from interface: JsNode
Causes this object to have the visitor visit itself and its children.

Parameters:
v - the visitor that should traverse this node

traverse

public void traverse(JsVisitorWithContext v,
                     JsContext ctx)
Description copied from interface: JsNode
Causes this object to have the visitor visit itself and its children.

Parameters:
v - the visitor that should traverse this node
ctx - the context of an existing traversal

toString

public java.lang.String toString()

withMetadataFrom

protected <T extends HasMetadata> T withMetadataFrom(T other)