nl.bluering
Class Bracket
java.lang.Object
|
+--nl.bluering.Bracket
- public class Bracket
- extends java.lang.Object
this class can be used for telling the ExpParser you want him
to recognize things like {a} and return them as accolade(a).
|
Field Summary |
java.lang.String |
fname
String is the normal name of this bracket. |
java.lang.String |
post
pre is the end string of this bracket. |
Expression |
postExp
postExp is an Expression that can be given to a CoolFileHAndle to
parse the post string. it is and(ignore(whitespace),post). |
java.lang.String |
pre
pre is the opening string of this bracket. |
Expression |
preExp
preExp is an Expression that can be given to a CoolFileHAndle to
parse the pre string. it is and(ignore(whitespace),pre). |
|
Constructor Summary |
Bracket(java.lang.String pre,
java.lang.String post,
java.lang.String fname)
see descriptions of corresponding fields. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pre
public java.lang.String pre
- pre is the opening string of this bracket. For example "{"
preExp
public Expression preExp
- preExp is an Expression that can be given to a CoolFileHAndle to
parse the pre string. it is and(ignore(whitespace),pre).
post
public java.lang.String post
- pre is the end string of this bracket. For example "}", You van leave
it empty, but that it is not what people expect.
postExp
public Expression postExp
- postExp is an Expression that can be given to a CoolFileHAndle to
parse the post string. it is and(ignore(whitespace),post).
fname
public java.lang.String fname
- String is the normal name of this bracket. It can for instance be
"accolade". By using different names you can discriminate things in
different brackets. fname can be zero, in case you just want the enclosed
object.
Bracket
public Bracket(java.lang.String pre,
java.lang.String post,
java.lang.String fname)
- see descriptions of corresponding fields.