Class: Archsight::Query::AST::NotOp

Inherits:
Node
  • Object
show all
Defined in:
lib/archsight/query/ast.rb

Overview

Unary NOT operation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operand) ⇒ NotOp

Returns a new instance of NotOp.



45
46
47
# File 'lib/archsight/query/ast.rb', line 45

def initialize(operand)
  @operand = operand
end

Instance Attribute Details

#operandObject (readonly)

Returns the value of attribute operand.



43
44
45
# File 'lib/archsight/query/ast.rb', line 43

def operand
  @operand
end

Instance Method Details

#accept(visitor) ⇒ Object



49
50
51
# File 'lib/archsight/query/ast.rb', line 49

def accept(visitor)
  visitor.visit_not_op(self)
end