aboutsummaryrefslogtreecommitdiff
path: root/ql/ast/nodes/statements/question_statement.py
diff options
context:
space:
mode:
authorBicker <bickerkards@tuta.io>2019-05-22 17:45:37 +0200
committerBicker <bickerkards@tuta.io>2019-05-22 17:45:37 +0200
commit25314fd2aed81aa5281bc3d93dbcc7919368ebe1 (patch)
tree1995521ee652e419926de5fced0f2e3b655e70fb /ql/ast/nodes/statements/question_statement.py
Initial commitHEADmaster
Diffstat (limited to 'ql/ast/nodes/statements/question_statement.py')
-rw-r--r--ql/ast/nodes/statements/question_statement.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/ql/ast/nodes/statements/question_statement.py b/ql/ast/nodes/statements/question_statement.py
new file mode 100644
index 0000000..2878449
--- /dev/null
+++ b/ql/ast/nodes/statements/question_statement.py
@@ -0,0 +1,31 @@
+from ql.ast.nodes.base import BaseNode
+
+
+class QuestionNode(BaseNode):
+ def __init__(self, line_number, label, identifier, answer_type, answer, computed):
+ super(QuestionNode, self).__init__(line_number)
+ self.__label = label
+ self.__identifier = identifier
+ self.__answer_type = answer_type
+ self.__answer = answer
+ self.__computed = computed
+
+ @property
+ def label(self):
+ return self.__label
+
+ @property
+ def identifier(self):
+ return self.__identifier
+
+ @property
+ def answer_type(self):
+ return self.__answer_type
+
+ @property
+ def answer(self):
+ return self.__answer
+
+ @property
+ def computed(self):
+ return self.__computed