public class OperatorDescription extends Object implements AttributeContainer
Modifier and Type | Class and Description |
---|---|
static class |
OperatorDescription.Document
Represents document.
|
static class |
OperatorDescription.ExternalDocument
Represents a document provided by an external element.
|
static class |
OperatorDescription.MethodReference
Represents a reference to body of declaration.
|
static class |
OperatorDescription.Node
Represents input/output/argument.
|
static class |
OperatorDescription.ParameterReference
Represents a reference to a parameter declaration.
|
static class |
OperatorDescription.Reference
Represents reference to original declaration.
|
static class |
OperatorDescription.ReferenceDocument
Represents a document with reference.
|
static class |
OperatorDescription.ReturnReference
Represents a reference to return type/value of declaration.
|
static class |
OperatorDescription.SpecialReference
Represents an operator specific reference.
|
static class |
OperatorDescription.TextDocument
Represents a document with text.
|
Constructor and Description |
---|
OperatorDescription(OperatorDescription.Document document,
List<? extends OperatorDescription.Node> parameters,
List<? extends OperatorDescription.Node> outputs)
Creates a new instance.
|
OperatorDescription(OperatorDescription.Document document,
List<? extends OperatorDescription.Node> parameters,
List<? extends OperatorDescription.Node> outputs,
List<? extends ValueDescription> attributes)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
List<OperatorDescription.Node> |
getAllNodes()
Returns input/output/arguments.
|
List<OperatorDescription.Node> |
getArguments()
Returns the input arguments.
|
List<ValueDescription> |
getAttributes()
Returns the attributes.
|
OperatorDescription.Document |
getDocument()
Returns the documents about the operator.
|
List<OperatorDescription.Node> |
getInputs()
Returns the input datasets.
|
List<OperatorDescription.Node> |
getOutputs()
Returns the output datasets.
|
List<OperatorDescription.Node> |
getParameters()
Returns the parameters, which include input datasets and arguments.
|
ExecutableElement |
getSupport()
Returns the support method for this operator.
|
OperatorDescription |
withSupport(ExecutableElement newValue)
Sets the support method for this operator.
|
public OperatorDescription(OperatorDescription.Document document, List<? extends OperatorDescription.Node> parameters, List<? extends OperatorDescription.Node> outputs)
document
- the document about the operatorparameters
- parameters (input datasets/arguments)outputs
- output datasetsIllegalArgumentException
- if some parameters were null
public OperatorDescription(OperatorDescription.Document document, List<? extends OperatorDescription.Node> parameters, List<? extends OperatorDescription.Node> outputs, List<? extends ValueDescription> attributes)
document
- the document about the operatorparameters
- parameters (input datasets/arguments)outputs
- output datasetsattributes
- operator attributesIllegalArgumentException
- if some parameters were null
public OperatorDescription.Document getDocument()
public List<OperatorDescription.Node> getParameters()
public List<OperatorDescription.Node> getInputs()
public List<OperatorDescription.Node> getArguments()
public List<OperatorDescription.Node> getOutputs()
public List<OperatorDescription.Node> getAllNodes()
public List<ValueDescription> getAttributes()
AttributeContainer
getAttributes
in interface AttributeContainer
public ExecutableElement getSupport()
null
if this operator does not have support methodspublic OperatorDescription withSupport(ExecutableElement newValue)
newValue
- the support methodCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.