Module: Jaina::Parser::Expression::Operator::Abstract::DSL::InstanceMethods Private

Defined in:
lib/jaina/parser/expression/operator/abstract/dsl.rb,
lib/jaina/parser/expression/operator/grouping/dsl.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#acts_as_binary_term?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

Since:

  • 0.1.0



200
201
202
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 200

def acts_as_binary_term?
  self.class.acts_as_binary_term?
end

#acts_as_group_closener?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

Since:

  • 0.1.0



184
185
186
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 184

def acts_as_group_closener?
  self.class.acts_as_group_closener?
end

#acts_as_group_opener?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

Since:

  • 0.1.0



192
193
194
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 192

def acts_as_group_opener?
  self.class.acts_as_group_opener?
end

#acts_as_unary_term?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

Since:

  • 0.1.0



208
209
210
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 208

def acts_as_unary_term?
  self.class.acts_as_unary_term?
end

#associativity_directionSymbol, NilClass

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Symbol, NilClass)

Since:

  • 0.1.0



176
177
178
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 176

def associativity_direction
  self.class.associativity_direction
end

#non_terminal?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

Since:

  • 0.1.0



224
225
226
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 224

def non_terminal?
  self.class.non_terminal?
end

#precedence_levelInteger, NilClass

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Integer, NilClass)

Since:

  • 0.1.0



168
169
170
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 168

def precedence_level
  self.class.precedence_level
end

#terminal?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

Since:

  • 0.1.0



216
217
218
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 216

def terminal?
  self.class.terminal?
end

#tokenString, NilClass

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String, NilClass)

Since:

  • 0.1.0



160
161
162
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 160

def token
  self.class.token
end