Interface NodeFactory
-
- All Known Implementing Classes:
DefaultNodeFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface @Deprecated public interface NodeFactory
Deprecated.ANodeFactory
is responsible for creating aNode
objects from strings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Node
createNode(java.lang.String filename, java.lang.String document)
Deprecated.Creates aNode
from a documentString
.
-
-
-
Method Detail
-
createNode
Node createNode(java.lang.String filename, java.lang.String document)
Deprecated.Creates aNode
from a documentString
.The filename is used in error messages and for populating source locations for the built node objects.
- Parameters:
filename
- The name of the document that is being parsed to create nodes.document
- The document to parse into nodes.- Returns:
- Returns a
Node
representing the document. - Throws:
ModelSyntaxException
- when a RuntimeException occurs.
-
-