|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PathType>
org.jruby.embed.PathType
public enum PathType
The path type that tells from where Ruby runtime should load the specified file.
| Enum Constant Summary | |
|---|---|
ABSOLUTE
Given filename is an absolute path. |
|
CLASSPATH
Given filename should be found from a classpath. |
|
RELATIVE
Given filename is a relative path to a base directory. |
|
| Method Summary | |
|---|---|
static PathType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PathType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PathType ABSOLUTE
public static final PathType RELATIVE
ScriptingContainer.
ScriptingContainer container = new ScriptingContainer();
container.setAttribute(AttributeName.BASE_DIR, System.getProperty("user.dir"));
String filename = "test/ruby/iteration.rb";
Object receiver = container.runScriptlet(PathType.RELATIVE, filename);
public static final PathType CLASSPATH
| Method Detail |
|---|
public static PathType[] values()
for (PathType c : PathType.values()) System.out.println(c);
public static PathType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||