class AdLint::Cpp::Matcher::State

Attributes

matcher[R]

Public Class Methods

new(matcher) click to toggle source
# File lib/adlint/cpp/subst.rb, line 121
def initialize(matcher)
  @matcher = matcher
end

Public Instance Methods

accepted?() click to toggle source
# File lib/adlint/cpp/subst.rb, line 131
def accepted?
  subclass_responsibility
end
matching?() click to toggle source
# File lib/adlint/cpp/subst.rb, line 139
def matching?
  !accepted? && !rejected?
end
process(tok) click to toggle source
# File lib/adlint/cpp/subst.rb, line 127
def process(tok)
  subclass_responsibility
end
rejected?() click to toggle source
# File lib/adlint/cpp/subst.rb, line 135
def rejected?
  subclass_responsibility
end

Private Instance Methods

next_pattern_token() click to toggle source
# File lib/adlint/cpp/subst.rb, line 144
def next_pattern_token
  @matcher.next_pattern_token
end
rest_pattern_tokens() click to toggle source
# File lib/adlint/cpp/subst.rb, line 148
def rest_pattern_tokens
  @matcher.rest_pattern_tokens
end