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



228
229
230
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 228

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



212
213
214
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 212

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



220
221
222
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 220

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



236
237
238
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 236

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



204
205
206
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 204

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



252
253
254
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 252

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



196
197
198
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 196

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



244
245
246
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 244

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



188
189
190
# File 'lib/jaina/parser/expression/operator/abstract/dsl.rb', line 188

def token
  self.class.token
end