Skip to content

Package: RegExPart

RegExPart

Coverage

1: package model.type;
2:
3: /**
4: *
5: * @author HFW410RA - Philipp Rammos
6: *
7: */
8: public interface RegExPart {
9:
10:         /**
11:          * Returns the resolved string of the regexpart , withOUT references like (RE:LABEL).
12:          * RegExRefPart are in brackets.
13:          *
14:          * @return string
15:          * @throws ReferenceIsUnresolvedException
16:          * If a part is unresolved.
17:          */
18:         String toStringResolved() throws ReferenceIsUnresolvedException;
19:
20:         /**
21:          * Returns the unresolved string of the regexpart, with references like (RE:LABEL).
22:          *
23:          * @return string
24:          */
25:         String toStringUnresolved();
26:
27:         /**
28:          * accept method for visitor pattern.
29:          *
30:          * @param vis
31:          * the visitor.
32:          * @throws TypeDoesNotExistException
33:          * if a part is not resolvable
34:          * @throws TypeExceptions
35:          * if a cycle is detected
36:          */
37:         void accept(RegExPartVisitor vis) throws TypeDoesNotExistException, TypeExceptions;
38:
39: }