|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jagg.PropertyParser
public class PropertyParser
This class knows how to parse a property specification:
property[([param[, param]*])]
.
Constructor Summary | |
---|---|
PropertyParser()
Create a PropertyParser . |
|
PropertyParser(java.lang.String propertyText)
Create a PropertyParser object that will parse the given property text. |
Method Summary | |
---|---|
java.util.List<java.lang.Object> |
getParameters()
Returns the List of parameters (possibly empty), or
null if this is a simple property name. |
java.lang.String |
getPropertyName()
Returns the property or method name. |
boolean |
isMethod()
Returns whether this property text represents a method (with parentheses) or a simple property name (without parentheses). |
void |
parse()
Parses the property text. |
void |
setPropertyText(java.lang.String propertyText)
Sets the property to the given property text and resets the parser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyParser()
PropertyParser
.
public PropertyParser(java.lang.String propertyText)
PropertyParser
object that will parse the given property text.
propertyText
- The text of the property.Method Detail |
---|
public void setPropertyText(java.lang.String propertyText)
propertyText
- The new property text.public void parse()
public java.lang.String getPropertyName()
public boolean isMethod()
true
if it represents a method, false
if it represents a simple property name.public java.util.List<java.lang.Object> getParameters()
List
of parameters (possibly empty), or
null
if this is a simple property name.
List
of parameters (possibly empty), or
null
if this is a simple property name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |