class ANTLR3::CompileTask::GrammarFile::Imported

Public Class Methods

new( owner, path ) click to toggle source
# File lib/antlr3/task.rb, line 437
def initialize( owner, path )
  @owner = owner
  @path = path.to_s
  @imports = []
  @language = 'Java'
  @token_vocab = nil
  study
  fetch_imports
end

Public Instance Methods

delegate_files( suffix ) click to toggle source
# File lib/antlr3/task.rb, line 455
def delegate_files( suffix )
  @owner.delegate_files( "#{ @name }_#{ suffix }" )
end
target_files() click to toggle source
# File lib/antlr3/task.rb, line 459
def target_files
  targets = [ tokens_file ]
  targets.concat( @owner.delegate_files( @name ) )
  return( targets )
end