Class RNCStart
java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.RNCNode
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.RNCStart
- All Implemented Interfaces:
RNCRange
-
Constructor Summary
ConstructorsConstructorDescriptionRNCStart(int start, int end) Creates a new start node spanning the given offsets. -
Method Summary
Modifier and TypeMethodDescriptionReturns the assignment operator type used in this start declaration.getText()Returns the source text spanned by this node.voidsetAssignType(RNCAssignType assignType) Sets the assignment operator type for this start declaration.Methods inherited from class org.eclipse.lemminx.extensions.relaxng.grammar.rnc.RNCNode
addChild, findNodeAt, getChildren, getEnd, getOwnerDocument, getParent, getStart, hasChildren, isClosed, setClosed, setEnd, setStart
-
Constructor Details
-
RNCStart
public RNCStart(int start, int end) Creates a new start node spanning the given offsets.- Parameters:
start- the inclusive start offset (thestartkeyword).end- the exclusive end offset.
-
-
Method Details
-
getNodeType
- Specified by:
getNodeTypein classRNCNode
-
getAssignType
Returns the assignment operator type used in this start declaration.- Returns:
- the
RNCAssignType.
-
setAssignType
Sets the assignment operator type for this start declaration.- Parameters:
assignType- the assignment type parsed from the source.
-
getText
Description copied from class:RNCNodeReturns the source text spanned by this node.- Overrides:
getTextin classRNCNode- Returns:
- the text from
RNCNode.getStart()toRNCNode.getEnd(), ornullif this node is not attached to a document.
-