Class ParserResult


  • public class ParserResult
    extends Object
    Result of parsing Camel RouteBuilder or XML routes from the source code.
    • Constructor Detail

      • ParserResult

        public ParserResult​(String node,
                            int position,
                            int length,
                            String element)
      • ParserResult

        public ParserResult​(String node,
                            int position,
                            int length,
                            String element,
                            boolean parsed)
    • 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)