Package relaxngcc.automaton
Class Alphabet
java.lang.Object
relaxngcc.automaton.Alphabet
- Direct Known Subclasses:
Alphabet.ForAction
,Alphabet.Fork
,Alphabet.Markup
,Alphabet.Ref
,Alphabet.Text
An alphabet in RelaxNGCC is one of following types:
1. element start
2. element end
3. attribute start
3. attribute end
4. ref
5. typed value (<data>)
6. fixed value (<value>)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Alphabet of the type "enter attribute."static class
Alphabet of the type "enter element."static class
static final class
Alphabet that "forks" a state into a set of sub-automata.static class
Alphabet of the type "leave attribute."static class
Alphabet of the type "leave element."static class
Base class for (enter|leave)(Attribute|Element).static final class
Alphabet of the type "ref."static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Locator
Source location where this alphabet came from.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionasFork()
asMarkup()
asRef()
asText()
boolean
final int
getType()
abstract int
hashCode()
final boolean
final boolean
final boolean
final boolean
final boolean
isFork()
final boolean
final boolean
final boolean
isMarkup()
final boolean
isRef()
final boolean
isText()
final boolean
void
printLocator
(PrintStream out) Prints the locator associated with this.
-
Field Details
-
ENTER_ELEMENT
public static final int ENTER_ELEMENT- See Also:
-
LEAVE_ELEMENT
public static final int LEAVE_ELEMENT- See Also:
-
ENTER_ATTRIBUTE
public static final int ENTER_ATTRIBUTE- See Also:
-
LEAVE_ATTRIBUTE
public static final int LEAVE_ATTRIBUTE- See Also:
-
DATA_TEXT
public static final int DATA_TEXT- See Also:
-
VALUE_TEXT
public static final int VALUE_TEXT- See Also:
-
REF_BLOCK
public static final int REF_BLOCK- See Also:
-
FORK
public static final int FORK- See Also:
-
FOR_ACTION
public static final int FOR_ACTION- See Also:
-
_locator
Source location where this alphabet came from.
-
-
Method Details
-
getType
public final int getType() -
printLocator
Prints the locator associated with this. -
asMarkup
-
asEnterElement
-
asLeaveElement
-
asEnterAttribute
-
asLeaveAttribute
-
asRef
-
asText
-
asValueText
-
asDataText
-
asFork
-
asForAction
-
isMarkup
public final boolean isMarkup() -
isEnterElement
public final boolean isEnterElement() -
isLeaveElement
public final boolean isLeaveElement() -
isEnterAttribute
public final boolean isEnterAttribute() -
isLeaveAttribute
public final boolean isLeaveAttribute() -
isRef
public final boolean isRef() -
isText
public final boolean isText() -
isValueText
public final boolean isValueText() -
isDataText
public final boolean isDataText() -
isFork
public final boolean isFork() -
isForAction
public final boolean isForAction() -
equals
-
hashCode
public abstract int hashCode()
-