Files
PJVM/pjvm/jtypes/jtype.py
2020-01-30 22:31:36 +01:00

14 lines
289 B
Python

class JType:
j_base_type: str
j_type: str
def __init__(self, value):
raise NotImplementedError()
def instance_of(self, other: "JType") -> bool:
if self.j_type == other.j_type:
return True
# TODO inheritance check
return False