org.argouml.uml.generator
Class Parser
java.lang.Object
org.argouml.uml.generator.Parser
- Direct Known Subclasses:
- ParserDisplay
- public abstract class Parser
- extends Object
Parent of ParserDisplay.
TODO: Explain the purpose of this class!
TODO: Why do these functions return the object they receive?
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parser
public Parser()
parseExtensionPoint
public abstract Object parseExtensionPoint(String s)
- Parameters:
s - the input string to be parsed
- Returns:
- the extensionpoint
parseOperation
public abstract void parseOperation(String s,
Object op)
throws ParseException
- Parameters:
s - the input string to be parsedop - the operation
- Throws:
ParseException - when the input is invalid and should be rejected
parseAttribute
public abstract void parseAttribute(String s,
Object attr)
throws ParseException
- Parameters:
s - the input string to be parsedattr - the attribute
- Throws:
ParseException - when the input is invalid and should be rejected
parseTransition
public abstract Object parseTransition(Object trans,
String s)
throws ParseException
- Parameters:
trans - the transitions - the input string to be parsed
- Returns:
- the transition
- Throws:
ParseException - when there is a syntax error in the input text
so that it should be rejected
parseActionState
public abstract Object parseActionState(String s,
Object actionState)
- Parse a given string s with the information given from
the action state actionState and update this actionState.
- Parameters:
actionState - the input actionstates - the input string
- Returns:
- the actionstate