pub struct OwnedClassNode {Show 21 fields
pub id: String,
pub name: String,
pub namespace: String,
pub line_count: u32,
pub method_count: u32,
pub halstead_eta1: u32,
pub halstead_eta2: u32,
pub halstead_n1: u32,
pub halstead_n2: u32,
pub method_connectivity: Option<MethodConnectivity>,
pub method_fingerprints: Option<Value>,
pub method_tokens: Option<Value>,
pub call_sequences: Option<Value>,
pub cyclomatic_complexity: Option<Value>,
pub path_conditions: Option<Value>,
pub invariants: Option<Value>,
pub error_messages: Option<Value>,
pub magic_numbers: Option<Value>,
pub dead_code: Option<Value>,
pub tenant_branches: Option<Value>,
pub state_transitions: Option<Value>,
}Expand description
A class node with all attributes from the GraphML schema.
Required fields (id, name, namespace, lineCount, methodCount) are always
present. Halstead and semantic-mode fields are optional — they are None when the
GraphML was exported in syntax-only mode.
Fields§
§id: StringFully-qualified class name used as the GraphML node id.
name: String§namespace: String§line_count: u32§method_count: u32§halstead_eta1: u32§halstead_eta2: u32§halstead_n1: u32§halstead_n2: u32§method_connectivity: Option<MethodConnectivity>§method_fingerprints: Option<Value>§method_tokens: Option<Value>§call_sequences: Option<Value>§cyclomatic_complexity: Option<Value>§path_conditions: Option<Value>§invariants: Option<Value>§error_messages: Option<Value>§magic_numbers: Option<Value>§dead_code: Option<Value>§tenant_branches: Option<Value>§state_transitions: Option<Value>Trait Implementations§
Source§impl ClassNode for OwnedClassNode
impl ClassNode for OwnedClassNode
fn id(&self) -> &str
fn namespace(&self) -> &str
fn line_count(&self) -> u32
fn method_count(&self) -> u32
fn method_connectivity(&self) -> Option<&MethodConnectivity>
Source§fn cyclomatic_complexity(&self) -> Option<&Value>
fn cyclomatic_complexity(&self) -> Option<&Value>
Raw
cyclomaticComplexity JSON blob — shape
{"methods": [{"name": str, "complexity": int}, …]}.
Default None for nodes from extractors that omit it.Source§fn halstead_eta1(&self) -> u32
fn halstead_eta1(&self) -> u32
Halstead raw counts. Default 0 for nodes without the attribute — η = 0
short-circuits V to 0, so a missing-data class produces the same answer
as a class with no operators or operands.
fn halstead_eta2(&self) -> u32
fn halstead_n1(&self) -> u32
fn halstead_n2(&self) -> u32
Source§fn method_tokens(&self) -> Option<&Value>
fn method_tokens(&self) -> Option<&Value>
Raw
methodTokens JSON blob — shape
{"methods": [{"name": str, "tokens": [str]}, …]}.Source§fn method_fingerprints(&self) -> Option<&Value>
fn method_fingerprints(&self) -> Option<&Value>
Raw
methodFingerprints JSON blob — shape
{"methods": [{"name": str, "tokens": "TOK TOK TOK", "line": int, …}, …]}.
Distinct from methodTokens: fingerprint tokens are space-separated
normalised token-class strings used for clone detection.Source§fn call_sequences(&self) -> Option<&Value>
fn call_sequences(&self) -> Option<&Value>
Raw
callSequences JSON blob — shape
{"sequences": [{"method": str, "calls": [str], …}, …]}. Each sequence
is the ordered list of method names a single method invokes; used as a
transaction for association-rule mining and as a trace log for process
mining.Source§impl Clone for OwnedClassNode
impl Clone for OwnedClassNode
Source§fn clone(&self) -> OwnedClassNode
fn clone(&self) -> OwnedClassNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OwnedClassNode
impl RefUnwindSafe for OwnedClassNode
impl Send for OwnedClassNode
impl Sync for OwnedClassNode
impl Unpin for OwnedClassNode
impl UnsafeUnpin for OwnedClassNode
impl UnwindSafe for OwnedClassNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more