FileCheckError.java
/**
* Copyright 2010,2021 Nikolas S Boyd.
Permission is granted to copy this work provided this copyright statement is retained in all copies.
*/
package Hoot.Exceptions;
import Hoot.Runtime.Functions.*;
import Hoot.Runtime.Faces.*;
import Hoot.Runtime.Values.*;
import Hoot.Runtime.Blocks.*;
import Smalltalk.Core.*;
import Smalltalk.Blocks.*;
import Smalltalk.Magnitudes.*;
import Hoot.Behaviors.*;
import Hoot.Behaviors.Nil;
import Hoot.Behaviors.Object;
import Hoot.Behaviors.True;
import Hoot.Behaviors.False;
import Hoot.Behaviors.Boolean;
import Hoot.Magnitudes.*;
import Hoot.Magnitudes.Integer;
import Hoot.Magnitudes.Character;
import Hoot.Magnitudes.Float;
import Hoot.Magnitudes.Double;
import Hoot.Collections.*;
import Hoot.Collections.String;
public class FileCheckError extends Error
{
public static Metaclass type() { return (Metaclass)Metaclass.$class; }
@Override public Metaclass $class() { return (Metaclass)Metaclass.$class; }
public static class Metaclass extends Error.Metaclass
{
static final FileCheckError.Metaclass $class = new FileCheckError.Metaclass();
public Metaclass() {
this(FileCheckError.Metaclass.class);
}
public Metaclass(java.lang.Class aClass) {
super(aClass);
}
@Override public java.lang.Class outerClass() { return FileCheckError.class; }
/**
* @return
*/
public FileCheckError missingFile(final String filePath)
{
java.lang.String exitID = "FileCheckErrorMetatype>>missingFile";
Frame f0 = new Frame(exitID);
return f0.evaluate(() -> {
return (FileCheckError)f0.exit(exitID, new FileCheckError(filePath).signal(String.from("file missing")));
});
}
/**
* @return
*/
public FileCheckError presentFile(final String filePath)
{
java.lang.String exitID = "FileCheckErrorMetatype>>presentFile";
Frame f0 = new Frame(exitID);
return f0.evaluate(() -> {
return (FileCheckError)f0.exit(exitID, new FileCheckError(filePath).signal(String.from("file present")));
});
}
}
protected String filePath;
/**
* @return
*/
public String filePath()
{
java.lang.String exitID = "FileCheckError>>filePath";
Frame f0 = new Frame(exitID);
return (String)filePath;
}
/**
*
*/
public FileCheckError(final String path)
{
java.lang.String exitID = "FileCheckError>>FileCheckError";
Frame f0 = new Frame(exitID);
filePath = path;
}
/**
* @return
*/
@Override public Boolean isResumable()
{
java.lang.String exitID = "FileCheckError>>isResumable";
Frame f0 = new Frame(exitID);
return (Boolean)True.literal();
}
}