Documentation
¶
Index ¶
Constants ¶
View Source
const ( UDPE mainQueryType = iota NUDPE )
View Source
const ( Undefined customBool = iota False True )
Custom boolean values which comprises the 'Undefined' value
View Source
const ( FPE udpeType = iota RPE )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct {
// contains filtered or unexported fields
}
func NewAttribute ¶
type CloseTagSemanticValue ¶
type CloseTagSemanticValue struct {
// contains filtered or unexported fields
}
func NewCloseTagSemanticValue ¶
func NewCloseTagSemanticValue(id string, startPos int, endPos int) *CloseTagSemanticValue
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
func (*Element) SetFromExtremeTags ¶
func (e *Element) SetFromExtremeTags(openTag OpenTagSemanticValue, closeTag CloseTagSemanticValue)
func (*Element) SetFromSingleTag ¶
func (e *Element) SetFromSingleTag(openCloseTag OpenCloseTagSemanticValue)
type ExecutorCommand ¶
type ExecutorCommand interface { Execute(xpathQuery string) ExecutorCommand Against(source []byte) ExecutorCommand WithNumberOfThreads(numberOfThreads int) ExecutorCommand Run(runner *gopapageno.Runner) (results []Position, err error) InVerboseMode() ExecutorCommand }
ExecutorCommand represents a command that can be made by a client to execute a XPath query
func Execute ¶
func Execute(xpathQuery string) ExecutorCommand
Execute specify the XPath query to be executed
func WithNumberOfThreads ¶
func WithNumberOfThreads(numberOfThreads int) ExecutorCommand
WithNumberOfThreads specify the number of threads to be used to execute the XPath query
type NonTerminal ¶
type NonTerminal interface { SetExecutionTable(execTab executionTable) NonTerminal SetNode(n interface{}) NonTerminal Children() []NonTerminal SetDirectChildAndInheritItsChildren(NonTerminal) NonTerminal ExecutionTable() executionTable Node() interface{} Position() Position }
NonTerminal represents a unique non terminal inside the syntax tree representing the XML document
func NewNonTerminal ¶
func NewNonTerminal() NonTerminal
type OpenCloseTagSemanticValue ¶
type OpenCloseTagSemanticValue struct {
OpenTagSemanticValue
}
func NewOpenCloseTagSemanticValue ¶
func NewOpenCloseTagSemanticValue(id string, attributes []*Attribute, startPos int, endPos int) *OpenCloseTagSemanticValue
type OpenTagSemanticValue ¶
type OpenTagSemanticValue struct {
// contains filtered or unexported fields
}
func NewOpenTagSemanticValue ¶
func NewOpenTagSemanticValue(id string, attributes []*Attribute, startPos int, endPos int) *OpenTagSemanticValue
type Position ¶
Position represents the Position of some information inside a document in terms of number of characters from the beginning of the document.
type Reduction ¶
type Reduction struct {
// contains filtered or unexported fields
}
func (*Reduction) Setup ¶
func (r *Reduction) Setup(reducedNT, generativeNT, wrappedNT NonTerminal)
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
Text node
func (*Text) SetFromText ¶
func (t *Text) SetFromText(tsv TextSemanticValue)
type TextSemanticValue ¶
type TextSemanticValue struct {
// contains filtered or unexported fields
}
func NewTextSemanticValue ¶
func NewTextSemanticValue(data string, startPos int, endPos int) *TextSemanticValue
Click to show internal directories.
Click to hide internal directories.