Package org.eolang.maven.tojos
Class ScopedTojos
- java.lang.Object
-
- org.eolang.maven.tojos.ScopedTojos
-
- All Implemented Interfaces:
com.yegor256.tojos.Tojos
,Closeable
,AutoCloseable
public final class ScopedTojos extends Object implements com.yegor256.tojos.Tojos
Tojos with additional scope attribute.- Since:
- 0.30
-
-
Constructor Summary
Constructors Constructor Description ScopedTojos(com.yegor256.tojos.Tojos delegate, String scope)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.yegor256.tojos.Tojo
add(String name)
void
close()
List<com.yegor256.tojos.Tojo>
select(Predicate<com.yegor256.tojos.Tojo> filter)
-
-
-
Constructor Detail
-
ScopedTojos
public ScopedTojos(com.yegor256.tojos.Tojos delegate, String scope)
Ctor.- Parameters:
delegate
- Unscoped tojos without 'scope' attribute.scope
- Scope.
-
-
Method Detail
-
add
public com.yegor256.tojos.Tojo add(String name)
- Specified by:
add
in interfacecom.yegor256.tojos.Tojos
-
select
public List<com.yegor256.tojos.Tojo> select(Predicate<com.yegor256.tojos.Tojo> filter)
- Specified by:
select
in interfacecom.yegor256.tojos.Tojos
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-