Package org.apache.camel.parser
Class ParserResult
- java.lang.Object
-
- org.apache.camel.parser.ParserResult
-
public class ParserResult extends Object
Result of parsing Camel RouteBuilder or XML routes from the source code.
-
-
Constructor Summary
Constructors Constructor Description ParserResult(String node, int position, int length, String element)ParserResult(String node, int position, int length, String element, boolean parsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetElement()The element such as a Camel endpoint uriintgetLength()Length of node in the source code (not line based).StringgetNode()The node which is typically a Camel EIP name such as to, wireTap etc.intgetPosition()Character based position in the source code (not line based).BooleangetPredicate()booleanisParsed()Whether the element was successfully parsed.voidsetPredicate(Boolean predicate)Tells if it was an expression which is intended to be used as a predicate (determined from camel-core mode)StringtoString()
-
-
-
Method Detail
-
getPosition
public int getPosition()
Character based position in the source code (not line based).
-
getLength
public int getLength()
Length of node in the source code (not line based).
-
getElement
public String getElement()
The element such as a Camel endpoint uri
-
isParsed
public boolean isParsed()
Whether the element was successfully parsed. If the parser cannot parse the element for whatever reason this will return false.
-
getNode
public String getNode()
The node which is typically a Camel EIP name such as to, wireTap etc.
-
getPredicate
public Boolean getPredicate()
-
setPredicate
public void setPredicate(Boolean predicate)
Tells if it was an expression which is intended to be used as a predicate (determined from camel-core mode)
-
-