Package relaxngcc.builder
Class ScopeInfo
java.lang.Object
relaxngcc.builder.ScopeInfo
information about a scope
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal NGCCGrammar
final Scope
Scope object to which this object is attached. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
Computes the AFOLLOW set of this _scopecreateAction
(String code) Creates a new Action object inside this _scope.createAction
(StringBuffer code) void
dump
(PrintStream strm) void
dumpAutomaton
(File target) Writes the automaton by using GraphViz.Alias[]
int
head()
Computes the HEAD set of this _scope (that doesn't include EVERYTHING_ELSE token) and returns them in a new set.void
Computes the HEAD set of this _scope (that doesn't include EVERYTHING_ELSE token.) SeeHead
for the definition.boolean
boolean
isRoot()
Returns true if this is the start pattern.boolean
isUserDefinedField
(String name) final Iterator
Iterate all the aliases.iterateStatesHaving
(int alphabetTypes) Iterates states that have transitions with one of specified alphabets.void
Makes the automaton smaller.void
void
setNullable
(boolean v) void
-
Field Details
-
_grammar
-
_scope
Scope object to which this object is attached.
-
-
Constructor Details
-
ScopeInfo
-
-
Method Details
-
iterateNSURIConstants
-
getInitialState
-
setInitialState
-
isNullable
public boolean isNullable() -
setNullable
public void setNullable(boolean v) -
getStateCount
public int getStateCount() -
getClassName
-
getConstructorParams
-
minimizeStates
public void minimizeStates()Makes the automaton smaller. In actuality, this method only removes unreachable states. -
appendHeaderSection
-
getHeaderSection
-
isUserDefinedField
-
iterateActions
-
createAction
Creates a new Action object inside this _scope. -
createAction
-
iterateAliases
Iterate all the aliases. -
simplifyAutomaton
public void simplifyAutomaton() -
addNSURI
-
getNSStringConstant
-
iterateStatesHaving
Iterates states that have transitions with one of specified alphabets. -
iterateAcceptableStates
-
iterateAllStates
-
addState
-
addAlias
-
isRoot
public boolean isRoot()Returns true if this is the start pattern. -
dump
-
dumpAutomaton
Writes the automaton by using GraphViz.- Throws:
IOException
InterruptedException
-
head
Computes the HEAD set of this _scope (that doesn't include EVERYTHING_ELSE token.) SeeHead
for the definition. -
head
Computes the HEAD set of this _scope (that doesn't include EVERYTHING_ELSE token) and returns them in a new set. -
calcAFOLLOW
public void calcAFOLLOW()Computes the AFOLLOW set of this _scope
-