Lines Matching refs:self

31     def __init__(self, name, examples, supports_bitwise=False, supports_numeric=False):  argument
32 self.name=name
33 self.examples=examples
34 self.supports_bitwise=supports_bitwise
35 self.supports_numeric=supports_numeric
37 def is_value_type(self): argument
40 def __repr__(self): argument
41 return self.name
43 def __str__(self): argument
44 return self.name
47 …def __init__(self, name, boxed_type, examples, ordinal=-1, width=-1, supports_bitwise=True, suppor… argument
48 JavaType.__init__(self, name, examples, supports_bitwise, supports_numeric)
49 self.ordinal=ordinal
50 self.width=width
51 self.boxed_type=boxed_type
53 def boxing_method(self): argument
54 return self.boxed_type + ".valueOf"
56 def unboxing_method(self): argument
57 return self.name + "Value"
59 def is_value_type(self): argument
62 def __eq__(self, other): argument
63 return self.ordinal == other.ordinal
65 def __hash__(self): argument
66 return self.ordinal
68 def __le__(self, other): argument
69 return self.ordinal < other.ordinal
71 def __repr__(self): argument
72 return self.name
74 def __str__(self): argument
75 return self.name
110 …def __init__(self, name, imports=[], declarations=[], lookup='', coordinates=[], get_value='', may… argument
111 self.name = name
112 self.imports = imports
113 self.declarations = declarations
114 self.lookup = lookup
115 self.coordinates = coordinates
116 self.get_value_ = get_value
117 self.may_throw_read_only = may_throw_read_only
119 def get_name(self): argument
120 return self.name
122 def get_coordinates(self): argument
123 return self.coordinates
125 def get_field_declarations(self, dictionary): argument
126 return list(map(lambda d: Template(d).safe_substitute(dictionary), self.declarations))
128 def get_imports(self): argument
129 return self.imports
131 def get_lookup(self, dictionary): argument
132 return Template(self.lookup).safe_substitute(dictionary)
134 def get_supported_types(self): argument
135 … return VarHandleKind.VIEW_SUPPORTED_TYPES if self.is_view() else VarHandleKind.ALL_SUPPORTED_TYPES
137 def is_view(self): argument
138 return "View" in self.name
140 def get_value(self, dictionary): argument
141 return Template(self.get_value_).safe_substitute(dictionary)
440 def __init__(self, method_name): argument
441 self.method_name = method_name
442 self.access_mode = self.get_access_mode(method_name)
443 self.access_mode_form = self.get_access_mode_form(method_name)
445 def get_return_type(self, var_type): argument
446 if self.access_mode_form == AccessModeForm.SET:
448 elif (self.access_mode_form == AccessModeForm.STRONG_COMPARE_AND_SET or
449 self.access_mode_form == AccessModeForm.WEAK_COMPARE_AND_SET):
454 def get_number_of_var_type_arguments(self): argument
455 if self.access_mode_form == AccessModeForm.GET:
457 elif (self.access_mode_form == AccessModeForm.SET or
458 self.access_mode_form == AccessModeForm.GET_AND_SET or
459 self.access_mode_form == AccessModeForm.GET_AND_UPDATE_BITWISE or
460 self.access_mode_form == AccessModeForm.GET_AND_UPDATE_NUMERIC):
462 elif (self.access_mode_form == AccessModeForm.STRONG_COMPARE_AND_SET or
463 self.access_mode_form == AccessModeForm.WEAK_COMPARE_AND_SET or
464 self.access_mode_form == AccessModeForm.COMPARE_AND_EXCHANGE):
467 raise ValueError(self.access_mode_form)
469 def is_read_only(self): argument
470 return self.access_mode_form == AccessModeForm.GET
472 def get_java_bitwise_operator(self): argument
473 if "BitwiseAnd" in self.method_name:
475 elif "BitwiseOr" in self.method_name:
477 elif "BitwiseXor" in self.method_name:
479 raise ValueError(self.method_name)
481 def get_java_numeric_operator(self): argument
482 if "Add" in self.method_name:
484 raise ValueError(self.method_name)