Initial commit
This commit is contained in:
13
pjvm/jtypes/jtype.py
Normal file
13
pjvm/jtypes/jtype.py
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user