ParserMatchEventpublic class ParserMatchEvent extends GuessingEvent
Fields Summary |
---|
public static int | TOKEN | public static int | BITSET | public static int | CHAR | public static int | CHAR_BITSET | public static int | STRING | public static int | CHAR_RANGE | private boolean | inverse | private boolean | matched | private Object | target | private int | value | private String | text |
Constructors Summary |
---|
public ParserMatchEvent(Object source)
super(source);
| public ParserMatchEvent(Object source, int type, int value, Object target, String text, int guessing, boolean inverse, boolean matched)
super(source);
setValues(type,value,target,text,guessing,inverse,matched);
|
Methods Summary |
---|
public java.lang.Object | getTarget()
return target;
| public java.lang.String | getText()
return text;
| public int | getValue()
return value;
| public boolean | isInverse()
return inverse;
| public boolean | isMatched()
return matched;
| void | setInverse(boolean inverse)
this.inverse = inverse;
| void | setMatched(boolean matched)
this.matched = matched;
| void | setTarget(java.lang.Object target)
this.target = target;
| void | setText(java.lang.String text)
this.text = text;
| void | setValue(int value)
this.value = value;
| void | setValues(int type, int value, java.lang.Object target, java.lang.String text, int guessing, boolean inverse, boolean matched)This should NOT be called from anyone other than ParserEventSupport!
super.setValues(type, guessing);
setValue(value);
setTarget(target);
setInverse(inverse);
setMatched(matched);
setText(text);
| public java.lang.String | toString()
return "ParserMatchEvent [" +
(isMatched()?"ok,":"bad,") +
(isInverse()?"NOT ":"") +
(getType()==TOKEN?"token,":"bitset,") +
getValue() + "," + getTarget() + "," + getGuessing() + "]";
|
|