Skip to content

Package: AbstractVariableType

AbstractVariableType

nameinstructionbranchcomplexitylinemethod
AbstractVariableType(RegEx)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: package model.type;
2:
3: /**
4: * AbstractVariableType.
5: *
6: * @author Phil
7: *
8: */
9: public abstract class AbstractVariableType extends AbstractType {
10:         /**
11:          * Constructor for AbstractVariableType, just sets the field.
12:          *
13:          * @param expression
14:          * The expression to set.
15:          */
16:         AbstractVariableType(final RegEx expression) {
17:                 super(expression);
18:         }
19:
20:         /**
21:          * Returns the type-representation for printing.
22:          *
23:          * @return Typerepresentation for printing.
24:          */
25:         public abstract String getRepString();
26:
27:         /**
28:          * Returns the line to print.
29:          *
30:          * @return Returns a string value, representing a line to print.
31:          */
32:         public abstract String print();
33:
34:         /**
35:          * Return the field errorMessage. No side effects.
36:          *
37:          * @return this.errorMessage
38:          */
39:         public abstract String getErrorMessage();
40:
41:         /**
42:          * accept method for visitor pattern.
43:          *
44:          * @param vistor
45:          * the visitor.
46:          * @throws TypeDoesNotExistException
47:          * if a part is not resolvable
48:          * @throws TypeExceptions
49:          * if a cycle is detected
50:          */
51:         public abstract void accept(AbstractVariableTypeVisitor vistor)
52:                         throws TypeDoesNotExistException, TypeExceptions;
53:
54: }