org.ros.internal.message
Class MessageDefinitionParser

java.lang.Object
  extended by org.ros.internal.message.MessageDefinitionParser

public class MessageDefinitionParser
extends java.lang.Object

Parses message definitions and invokes a MessageDefinitionParser.MessageDefinitionVisitor for each field.


Nested Class Summary
static interface MessageDefinitionParser.MessageDefinitionVisitor
           
 
Constructor Summary
MessageDefinitionParser(MessageDefinitionParser.MessageDefinitionVisitor visitor)
           
 
Method Summary
 void parse(java.lang.String messageType, java.lang.String messageDefinition)
          Parses the message definition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDefinitionParser

public MessageDefinitionParser(MessageDefinitionParser.MessageDefinitionVisitor visitor)
Parameters:
visitor - the MessageDefinitionParser.MessageDefinitionVisitor that will be called for each field
Method Detail

parse

public void parse(java.lang.String messageType,
                  java.lang.String messageDefinition)
Parses the message definition

Parameters:
messageType - the type of message defined (e.g. std_msgs/String)
messageDefinition - the message definition (e.g. "string data")