01: /*
02: * Copyright (C) Chaperon. All rights reserved.
03: * -------------------------------------------------------------------------
04: * This software is published under the terms of the Apache Software License
05: * version 1.1, a copy of which has been included with this distribution in
06: * the LICENSE file.
07: */
08:
09: package net.sourceforge.chaperon.model.extended;
10:
11: import net.sourceforge.chaperon.model.Violations;
12:
13: public class EndOfText extends Pattern {
14: public boolean isNullable() {
15: return false;
16: }
17:
18: public PatternSet getFirstSet() {
19: return null;
20: }
21:
22: public PatternSet getLastSet() {
23: return null;
24: }
25:
26: public char[] getLimits() {
27: return new char[0];
28: }
29:
30: public boolean contains(char minimum, char maximum) {
31: return false;
32: }
33:
34: public boolean contains(char c) {
35: return false;
36: }
37:
38: public String getSymbol() {
39: return null;
40: }
41:
42: public Object clone() {
43: return this ;
44: }
45:
46: public Violations validate() {
47: return null;
48: }
49:
50: public String toString() {
51: return "$";
52: }
53: }
|