Skip to content

Commit 1911a3e

Browse files
committed
Removed redundant is_entry_point fields from JCallable and JType (these are superseded by
is_entrypoint and is_entrypoint_class fields, respectively) Signed-off-by: Saurabh Sinha <sinha108@gmail.com>
1 parent c0fd45c commit 1911a3e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cldk/models/java/models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ class JCallable(BaseModel):
187187
referenced_types (List[str]): The types referenced within the callable.
188188
accessed_fields (List[str]): Fields accessed in the callable.
189189
call_sites (List[JCallSite]): Call sites in the callable.
190+
is_entrypoint (bool): A flag indicating whether this is a service entry point method.
190191
variable_declarations (List[JVariableDeclaration]): Local variable declarations in the callable.
191192
crud_operations (List[JCRUDOperation]): CRUD operations in the callable.
192193
crud_queries (List[JCRUDQuery]): CRUD queries in the callable.
@@ -196,7 +197,6 @@ class JCallable(BaseModel):
196197
signature: str
197198
is_implicit: bool
198199
is_constructor: bool
199-
is_entry_point: bool = False
200200
comment: str
201201
annotations: List[str]
202202
modifiers: List[str]
@@ -236,13 +236,13 @@ class JType(BaseModel):
236236
is_annotation_declaration (bool): A flag indicating whether the object is an annotation declaration.
237237
is_record_declaration (bool): A flag indicating whether this object is a record declaration.
238238
is_concrete_class (bool): A flag indicating whether this is a concrete class.
239-
is_entry_point (bool): A flag indicating whether this is an entry point class.
240239
comment (str): The comment of the class or interface.
241240
extends_list (List[str]): The list of classes or interfaces that the object extends.
242241
implements_list (List[str]): The list of interfaces that the object implements.
243242
modifiers (List[str]): The list of modifiers of the object.
244243
annotations (List[str]): The list of annotations of the object.
245244
parent_type (str): The name of the parent class (if it exists).
245+
is_entrypoint_class (bool): A flag indicating whether this is a service entry point class.
246246
nested_type_declarations (List[str]): All the class declarations nested under this class.
247247
callable_declarations (Dict[str, JCallable]): The list of constructors and methods of the object.
248248
field_declarations (List[JField]): The list of fields of the object.
@@ -258,7 +258,6 @@ class JType(BaseModel):
258258
is_annotation_declaration: bool = False
259259
is_record_declaration: bool = False
260260
is_concrete_class: bool = False
261-
is_entry_point: bool = False
262261
comment: str
263262
extends_list: List[str] | None = []
264263
implements_list: List[str] | None = []

0 commit comments

Comments
 (0)