public class ParserResult extends Object
Constructor and Description |
---|
ParserResult(String node,
int position,
int length,
String element) |
ParserResult(String node,
int position,
int length,
String element,
boolean parsed) |
Modifier and Type | Method and Description |
---|---|
String |
getElement()
The element such as a Camel endpoint uri
|
int |
getLength()
Length of node in the source code (not line based).
|
String |
getNode()
The node which is typically a Camel EIP name such as to, wireTap etc.
|
int |
getPosition()
Character based position in the source code (not line based).
|
Boolean |
getPredicate() |
boolean |
isParsed()
Whether the element was successfully parsed.
|
void |
setPredicate(Boolean predicate)
Tells if it was an expression which is intended to be used as a predicate (determined from camel-core mode)
|
String |
toString() |
public int getPosition()
public int getLength()
public String getElement()
public boolean isParsed()
public String getNode()
public Boolean getPredicate()
public void setPredicate(Boolean predicate)
Apache Camel