|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AttributeName>
org.jruby.embed.AttributeName
public enum AttributeName
Predefined keys for an attribute map that ScriptingContainer has. Usage example:
ScriptingContainer container = new ScriptingContainer(); container.setAttribute(AttributeName.BASE_DIR, System.getProperty("user.dir");
Enum Constant Summary | |
---|---|
BASE_DIR
A key used in an attribute map to set a base directory. |
|
ERROR_WRITER
A key used in an attribute map to set an error writer. |
|
LINENUMBER
A key used in an attribute map to set a line number in error message. |
|
READER
A key used in an attribute map to set a reader. |
|
RECEIVER
A key used in an attribute map to set a receiver object for sharing variables. |
|
SHARING_VARIABLES
A key used in an attribute map to turn on/off sharing variable feature. |
|
TERMINATION
A key used in an attribute map to turn on/off termination. |
|
UNICODE_ESCAPE
A key used in an attribute map to specify that the script to be parsed has unicode escape in it. |
|
WRITER
A key used in an attribute map to set a writer. |
Method Summary | |
---|---|
static AttributeName |
getType(java.lang.String fqpn)
Returns a fully qualified attribute name that corresponds to a given enumerated type identifier. |
java.lang.String |
toString()
Returns the fully qualified attribute name of this enum constant. |
static AttributeName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AttributeName[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final AttributeName READER
public static final AttributeName WRITER
public static final AttributeName ERROR_WRITER
public static final AttributeName BASE_DIR
public static final AttributeName LINENUMBER
public static final AttributeName UNICODE_ESCAPE
public static final AttributeName SHARING_VARIABLES
public static final AttributeName TERMINATION
public static final AttributeName RECEIVER
Method Detail |
---|
public static AttributeName[] values()
for (AttributeName c : AttributeName.values()) System.out.println(c);
public static AttributeName 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 nullpublic java.lang.String toString()
toString
in class java.lang.Enum<AttributeName>
public static AttributeName getType(java.lang.String fqpn)
fqan
- fully qualified attribute name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |