Maven module :un.api : api-syntax :
Class : un.api.parser.SyntaxNode
Extends/Implements : un.api.model.tree.DefaultNode
Subclasses : -

author  Johann Sorel


Variables : -
Functions : SyntaxNode, SyntaxNode, getRule, setRule, getToken, setToken, getChildByRule, getChildrenByRule, getChildByRule, getChildrenByRule, getChildByToken, getChildrenByToken, getChildByToken, getChildrenByToken, trim, getTokensChars, getTokensChars, thisToChars



public void SyntaxNode ()

public void SyntaxNode (Rule rule, Token token)

public Rule getRule ()

public void setRule (Rule rule)

public Token getToken ()

public void setToken (Token token)


Get first child syntax node with given rule
param  rule
return  SyntaxNode or null if none
public SyntaxNode getChildByRule (Rule rule)


Get all children syntax nodes with given rule
param  rule
return  SyntaxNode sequence, never null
public Sequence getChildrenByRule (Rule rule)


Get first child syntax node with given rule name.
param  name
return  SyntaxNode or null if none
public SyntaxNode getChildByRule (Chars name)


Get all children syntax nodes with given rule name.
param  name
return  SyntaxNode sequence, never null
public Sequence getChildrenByRule (Chars name)


Get first child syntax node with given token type
param  tokenType
return  SyntaxNode or null if none
public SyntaxNode getChildByToken (TokenType tokenType)


Get all children syntax nodes with given token type
param  tokenType
return  SyntaxNode sequence, never null
public Sequence getChildrenByToken (TokenType tokenType)


Get first child syntax node with given token type name.
param  name
return  SyntaxNode or null if none
public SyntaxNode getChildByToken (Chars name)


Get all children syntax nodes with given token type name.
param  name
return  SyntaxNode sequence, never null
public Sequence getChildrenByToken (Chars name)


Remove all nodes from the syntax tree which match given predicate.
param  predicate
public void trim (Predicate predicate)


Rebuild a Chars from all tokens in this syntax node.
return  Chars
public Chars getTokensChars ()

protected void getTokensChars (CharBuffer cb)

public Chars thisToChars ()