FileDocCategorySizeDatePackage
ParserMatchEvent.javaAPI DocGlassfish v2 API1966Wed Feb 08 12:31:24 GMT 2006persistence.antlr.debug

ParserMatchEvent

public 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.ObjectgetTarget()

		return target;
	
public java.lang.StringgetText()

		return text;
	
public intgetValue()

		return value;
	
public booleanisInverse()

		return inverse;
	
public booleanisMatched()

		return matched;
	
voidsetInverse(boolean inverse)

		this.inverse = inverse;
	
voidsetMatched(boolean matched)

		this.matched = matched;
	
voidsetTarget(java.lang.Object target)

		this.target = target;
	
voidsetText(java.lang.String text)

		this.text = text;
	
voidsetValue(int value)

		this.value = value;
	
voidsetValues(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.StringtoString()

		return "ParserMatchEvent [" + 
		       (isMatched()?"ok,":"bad,") +
		       (isInverse()?"NOT ":"") +
		       (getType()==TOKEN?"token,":"bitset,") +
		       getValue() + "," + getTarget() + "," + getGuessing() + "]";