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

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.JsUnaryOperation
All Implemented Interfaces:
JsNode
Direct Known Subclasses:
JsPostfixOperation, JsPrefixOperation

public abstract class JsUnaryOperation
extends JsExpression


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jetbrains.kotlin.js.backend.ast.JsExpression
JsExpression.JsExpressionHasArguments
 
Constructor Summary
JsUnaryOperation(JsUnaryOperator op, JsExpression arg)
           
 
Method Summary
 void acceptChildren(JsVisitor visitor)
           
 JsExpression getArg()
           
 JsUnaryOperator getOperator()
           
 void setArg(JsExpression arg)
           
 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.JsExpression
deepCopy, isLeaf, makeStmt, source
 
Methods inherited from class org.jetbrains.kotlin.js.backend.ast.SourceInfoAwareJsNode
getSource, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jetbrains.kotlin.js.backend.ast.JsNode
accept
 

Constructor Detail

JsUnaryOperation

public JsUnaryOperation(JsUnaryOperator op,
                        JsExpression arg)
Method Detail

getArg

public JsExpression getArg()

getOperator

public JsUnaryOperator getOperator()

setArg

public void setArg(JsExpression arg)

acceptChildren

public void acceptChildren(JsVisitor visitor)
Specified by:
acceptChildren in interface JsNode
Overrides:
acceptChildren in class SourceInfoAwareJsNode

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)