Package com.io7m.smfj.processing.main
Class SMFMemoryMeshFilterMetadataRemove
- java.lang.Object
-
- com.io7m.smfj.processing.main.SMFMemoryMeshFilterMetadataRemove
-
- All Implemented Interfaces:
SMFMemoryMeshFilterType
public final class SMFMemoryMeshFilterMetadataRemove extends java.lang.Object implements SMFMemoryMeshFilterType
A filter that removes matching metadata from a mesh.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSMFMemoryMeshFilterMetadataRemove.Version
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEThe command name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SMFMemoryMeshFilterTypecreate(java.util.Optional<SMFSchemaName> in_schema_name, java.util.Optional<SMFMemoryMeshFilterMetadataRemove.Version> in_version)Create a new filter.SMFPartialLogged<SMFMemoryMesh>filter(SMFFilterCommandContext context, SMFMemoryMesh m)Evaluate the filter on the given mesh.java.lang.Stringname()static SMFPartialLogged<SMFMemoryMeshFilterType>parse(java.util.Optional<java.net.URI> file, int line, java.util.List<java.lang.String> text)Attempt to parse a command.java.lang.Stringsyntax()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
The command name.- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static SMFMemoryMeshFilterType create(java.util.Optional<SMFSchemaName> in_schema_name, java.util.Optional<SMFMemoryMeshFilterMetadataRemove.Version> in_version)
Create a new filter.- Parameters:
in_schema_name- The schema namein_version- The schema version- Returns:
- A new filter
-
parse
public static SMFPartialLogged<SMFMemoryMeshFilterType> parse(java.util.Optional<java.net.URI> file, int line, java.util.List<java.lang.String> text)
Attempt to parse a command.- Parameters:
file- The file, if anyline- The linetext- The text- Returns:
- A parsed command or a list of parse errors
-
name
public java.lang.String name()
- Specified by:
namein interfaceSMFMemoryMeshFilterType- Returns:
- The name of the filter
-
syntax
public java.lang.String syntax()
- Specified by:
syntaxin interfaceSMFMemoryMeshFilterType- Returns:
- The syntax of the filter
-
filter
public SMFPartialLogged<SMFMemoryMesh> filter(SMFFilterCommandContext context, SMFMemoryMesh m)
Description copied from interface:SMFMemoryMeshFilterTypeEvaluate the filter on the given mesh.- Specified by:
filterin interfaceSMFMemoryMeshFilterType- Parameters:
context- The filtering contextm- A mesh- Returns:
- A filtered mesh, or a list or reasons why the filtering did not work
-
-