jentry.entry.script.file

is_entry_method

jentry.entry.script.file.is_entry_method(node: javalang.ast.Node) → bool[source]

Determine if the given method node is an entry or not.

Parameters

node – Given method node.

Returns

Valid or not.

load_entries_from_file

jentry.entry.script.file.load_entries_from_file(filename: str) → Iterator[jentry.model.entry.JavaEntry][source]

Load entries from one java source code file.

Parameters

filename – File name.

Returns

Iterator of jentry.model.entry.JavaEntry objects.

load_entry_classes_from_code

jentry.entry.script.file.load_entry_classes_from_code(code: str) → Iterator[Tuple[str, str]][source]

Load entry classes from one java source code.

Parameters

code – Java source code string.

Returns

Iterator of entry class tuples.