java :: NativeFile
java :: NativeFile :: absolute
java :: NativeFile :: absolute_file
java :: NativeFile :: absolute_path
java :: NativeFile :: can_execute
java :: NativeFile :: can_read
java :: NativeFile :: can_write
java :: NativeFile :: canonical_file
java :: NativeFile :: create_file
java :: NativeFile :: defaultinit
java :: NativeFile :: delete
java :: NativeFile :: delete_on_exit
java :: NativeFile :: exists
java :: NativeFile :: free_space
java :: NativeFile :: is_directory
java :: NativeFile :: is_file
java :: NativeFile :: last_modified
java :: NativeFile :: length
java :: NativeFile :: name
java :: NativeFile :: parent
java :: NativeFile :: parent_file
java :: NativeFile :: path
java :: NativeFile :: set_readable
java :: NativeFile :: set_writable
java :: NativeFile :: total_space
java :: NativeFile :: usable_space
java $ NativeFile :: SELF
Type of this instance, automatically specialized in every classjava :: NativeFile :: absolute
java :: NativeFile :: absolute_file
java :: NativeFile :: absolute_path
core :: Pointer :: address_is_null
Is the address behind this Object at NULL?java :: NativeFile :: can_execute
java :: NativeFile :: can_read
java :: NativeFile :: can_write
java :: NativeFile :: canonical_file
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
java :: NativeFile :: create_file
jvm :: JavaObject :: defaultinit
java :: NativeFile :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: defaultinit
java :: NativeFile :: delete
java :: NativeFile :: delete_on_exit
java :: NativeFile :: exists
java :: NativeFile :: free_space
java :: NativeFile :: is_directory
java :: NativeFile :: is_file
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
java :: NativeFile :: last_modified
java :: NativeFile :: length
java :: NativeFile :: name
jvm :: JavaObject :: new_global_ref
Returns a global reference to the Java object behind this referencecore :: Object :: output_class_name
Display class name on stdout (debug only).java :: NativeFile :: parent
java :: NativeFile :: parent_file
java :: NativeFile :: path
jvm :: JavaObject :: pop_from_local_frame
Pops the current local reference frame and return a valid reference to selfjvm :: JavaObject :: pop_from_local_frame_with_env
Java implementation ofpop_from_local_frame
java :: NativeFile :: set_readable
java :: NativeFile :: set_writable
jvm :: JavaObject :: to_java_string
JavaString
representation of self
using Java's toString
java :: NativeFile :: total_space
java :: NativeFile :: usable_space
extern class NativeFile in "Java" `{ java.io.File `}
super JavaObject
fun can_execute: Bool in "Java" `{ return self.canExecute(); `}
fun can_read: Bool in "Java" `{ return self.canRead(); `}
fun can_write: Bool in "Java" `{ return self.canWrite(); `}
fun create_file: Bool in "Java" `{
try {
return self.createNewFile();
}catch(IOException e){
e.printStackTrace();
return false;
}
`}
fun delete: Bool in "Java" `{ return self.delete(); `}
fun delete_on_exit in "Java" `{ self.deleteOnExit(); `}
fun exists: Bool in "Java" `{ return self.exists(); `}
fun absolute_file: NativeFile in "Java" `{ return self.getAbsoluteFile(); `}
fun absolute_path: JavaString in "Java" `{ return self.getAbsolutePath(); `}
fun canonical_file: NativeFile in "Java" `{
try {
return self.getCanonicalFile();
}catch(IOException e){
e.printStackTrace();
return null;
}
`}
fun free_space: Int in "Java" `{ return (int)self.getFreeSpace(); `}
fun name: JavaString in "Java" `{ return self.getName(); `}
fun parent: JavaString in "Java" `{ return self.getParent(); `}
fun parent_file: NativeFile in "Java" `{ return self.getParentFile(); `}
fun path: JavaString in "Java" `{ return self.getPath(); `}
fun total_space: Int in "Java" `{ return (int)self.getTotalSpace(); `}
fun usable_space: Int in "Java" `{ return (int)self.getUsableSpace(); `}
fun absolute: Bool in "Java" `{ return self.isAbsolute(); `}
fun is_directory: Bool in "Java" `{ return self.isDirectory(); `}
fun is_file: Bool in "Java" `{ return self.isFile(); `}
fun last_modified: Int in "Java" `{ return (int)self.lastModified(); `}
fun length: Int in "Java" `{ return (int)self.length(); `}
fun set_readable(r: Bool, owner_only: Bool): Bool in "Java" `{ return self.setReadable(r, owner_only); `}
fun set_writable(w: Bool, owner_only: Bool): Bool in "Java" `{ return self.setWritable(w, owner_only); `}
end
lib/java/io.nit:33,1--75,3