class JavaClass::Classpath::FileClasspath
Abstract concept of a classpath pointing to a file.
- Author
-
Peter Kofler
Public Class Methods
new(root)
click to toggle source
Create a classpath with this root .
# File lib/javaclass/classpath/file_classpath.rb, line 11 def initialize(root) @root = root end
Public Instance Methods
==(other)
click to toggle source
Equality with other delegated to to_s.
# File lib/javaclass/classpath/file_classpath.rb, line 30 def ==(other) other.class == self.class && other.to_s == self.to_s end
additional_classpath()
click to toggle source
Return an empty array.
# File lib/javaclass/classpath/file_classpath.rb, line 21 def additional_classpath [] end
elements()
click to toggle source
Return the classpath elements of this (composite) classpath
# File lib/javaclass/classpath/file_classpath.rb, line 35 def elements [self] end
jar?()
click to toggle source
Return false
as this is no jar.
# File lib/javaclass/classpath/file_classpath.rb, line 16 def jar? false end
to_key(classname)
click to toggle source
Return the key for the access of this class file named classname .
# File lib/javaclass/classpath/file_classpath.rb, line 40 def to_key(classname) classname.to_javaname.to_class_file end
to_s()
click to toggle source
# File lib/javaclass/classpath/file_classpath.rb, line 25 def to_s @root.to_s end