pub struct Prepared { /* private fields */ }Expand description
The Java sources of a project, read and parsed, ready to enrich a model.
Parsing needs no builder: a caller can prepare while the model is being
built (extraction, SCIP linking), then apply.
Implementations§
Source§impl Prepared
impl Prepared
Sourcepub fn combine<'a>(parts: impl IntoIterator<Item = &'a Prepared>) -> Prepared
pub fn combine<'a>(parts: impl IntoIterator<Item = &'a Prepared>) -> Prepared
Combines per-file preparations without parsing sources again.
Sourcepub fn apply(&self, b: &mut ModelBuilder) -> JavaStats
pub fn apply(&self, b: &mut ModelBuilder) -> JavaStats
Adds the facts to b, which must hold the entities extracted from
the same sources: enrich_files in two steps.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Prepared
impl Freeze for Prepared
impl Move for Prepared
impl RefUnwindSafe for Prepared
impl Send for Prepared
impl Sync for Prepared
impl Unpin for Prepared
impl UnsafeUnpin for Prepared
impl UnwindSafe for Prepared
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more