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 classstatic classAlphabet of the type "enter attribute."static classAlphabet of the type "enter element."static classstatic final classAlphabet that "forks" a state into a set of sub-automata.static classAlphabet of the type "leave attribute."static classAlphabet of the type "leave element."static classBase class for (enter|leave)(Attribute|Element).static final classAlphabet of the type "ref."static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal LocatorSource location where this alphabet came from.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionasFork()asMarkup()asRef()asText()booleanfinal intgetType()abstract inthashCode()final booleanfinal booleanfinal booleanfinal booleanfinal booleanisFork()final booleanfinal booleanfinal booleanisMarkup()final booleanisRef()final booleanisText()final booleanvoidprintLocator(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()
-