rvl.swv
Enum Tag
java.lang.Object
java.lang.Enum<Tag>
rvl.swv.Tag
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Tag>
public enum Tag
- extends java.lang.Enum<Tag>
This enumerates the possible tags that can be found in the source file.
-
chunk
is returned when a code chunk is found
-
coderef
is return when there is a reference to previous labeled code
(This should happen only within a code chunk.)
-
globalOpts
and langOpts
designate global and language-specific option
specifications that applym to all future chunks
-
expr
signals that we have an inline expression to evaluate and embed.
-
recallFig
, recallCode
, and recallOutput
signal
requests to embed results from prior savefig, savecode,
and saveout chunk options
-
noMore
is the code for no more tags found.
Method Summary |
static Tag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Tag[] |
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 |
chunk
public static final Tag chunk
coderef
public static final Tag coderef
globalOpts
public static final Tag globalOpts
langOpts
public static final Tag langOpts
expr
public static final Tag expr
recallFig
public static final Tag recallFig
recallCode
public static final Tag recallCode
recallOutput
public static final Tag recallOutput
noMore
public static final Tag noMore
values
public static Tag[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Tag c : Tag.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Tag valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null