Class JavaClass::Classpath::FileClasspath
In: lib/javaclass/classpath/file_classpath.rb
Parent: Object

Abstract concept of a classpath pointing to a file.

Author:Peter Kofler

Methods

==   additional_classpath   elements   jar?   new   to_key   to_s  

Public Class methods

Create a classpath with this root .

[Source]

# File lib/javaclass/classpath/file_classpath.rb, line 11
      def initialize(root)
        @root = root
      end

Public Instance methods

Equality with other delegated to to_s.

[Source]

# File lib/javaclass/classpath/file_classpath.rb, line 30
      def ==(other)
        other.class == self.class && other.to_s == self.to_s
      end

Return an empty array.

[Source]

# File lib/javaclass/classpath/file_classpath.rb, line 21
      def additional_classpath
        []
      end

Return the classpath elements of this (composite) classpath

[Source]

# File lib/javaclass/classpath/file_classpath.rb, line 35
      def elements
        [self]
      end

Return false as this is no jar.

[Source]

# File lib/javaclass/classpath/file_classpath.rb, line 16
      def jar?
        false
      end

Return the key for the access of this class file named classname .

[Source]

# File lib/javaclass/classpath/file_classpath.rb, line 40
      def to_key(classname)
        classname.to_javaname.to_class_file
      end

[Source]

# File lib/javaclass/classpath/file_classpath.rb, line 25
      def to_s
        @root.to_s
      end

[Validate]