Class ScopeInfo
java.lang.Object
relaxngcc.builder.ScopeInfo
information about a scope
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal NGCCGrammarfinal ScopeScope object to which this object is attached. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidComputes the AFOLLOW set of this _scopecreateAction(String code) Creates a new Action object inside this _scope.createAction(StringBuffer code) voiddump(PrintStream strm) voiddumpAutomaton(File target) Writes the automaton by using GraphViz.Alias[]inthead()Computes the HEAD set of this _scope (that doesn't include EVERYTHING_ELSE token) and returns them in a new set.voidComputes the HEAD set of this _scope (that doesn't include EVERYTHING_ELSE token.) Seefor the definition.invalid reference
HeadbooleanbooleanisRoot()Returns true if this is the start pattern.booleanisUserDefinedField(String name) final IteratorIterate all the aliases.iterateStatesHaving(int alphabetTypes) Iterates states that have transitions with one of specified alphabets.voidMakes the automaton smaller.voidvoidsetNullable(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:
IOExceptionInterruptedException
-
head
Computes the HEAD set of this _scope (that doesn't include EVERYTHING_ELSE token.) Seefor the definition.invalid reference
Head -
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
-