Project

General

Profile

Revision 6

Added by Willibald K. over 8 years ago

adding methods to query types for their number of elements, fixing an issue with the ActionPrinter

View differences:

TupleType.java
28 28
package org.momut.ooas.ast.types;
29 29

  
30 30
import java.util.LinkedList;
31

  
31

  
32 32
import org.momut.ooas.ast.IAstVisitor;
33 33
import org.momut.ooas.ast.identifiers.TypeIdentifier;
34 34

  
35

  
36

  
35 37
///////////////////////////////////////////////
36 38
///  Complex Type: TupleType
37 39
///
......
71 73
		return result.toString();
72 74
	}
73 75

  
76
	@Override
77
	public int valueCount() {
78
		int result = 1;
79
		for (final UlyssesType inner: m_innerTypes)
80
			result *= inner.valueCount();
81
		return result;
82
	}
74 83
}

Also available in: Unified diff