Package org.apache.camel.parser
Class ParserResult
java.lang.Object
org.apache.camel.parser.ParserResult
Result of parsing Camel RouteBuilder or XML routes from the source code.
-
Constructor Summary
ConstructorsConstructorDescriptionParserResult(String node, int position, int length, String element) ParserResult(String node, int position, int length, String element, boolean parsed) -
Method Summary
Modifier and TypeMethodDescriptionThe element such as a Camel endpoint uriintLength of node in the source code (not line based).getNode()The node which is typically a Camel EIP name such as to, wireTap etc.intCharacter based position in the source code (not line based).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)toString()
-
Constructor Details
-
ParserResult
-
ParserResult
-
-
Method Details
-
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
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
The node which is typically a Camel EIP name such as to, wireTap etc. -
getPredicate
-
setPredicate
Tells if it was an expression which is intended to be used as a predicate (determined from camel-core mode) -
toString
-