public static final class OperatorDescription.Node extends Object implements AttributeContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
OperatorDescription.Node.Kind
Represents parameter kind.
|
| Constructor and Description |
|---|
Node(OperatorDescription.Node.Kind kind,
String name,
OperatorDescription.Document document,
TypeMirror type,
OperatorDescription.Reference reference)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<ValueDescription> |
getAttributes()
Returns the attributes.
|
OperatorDescription.Document |
getDocument()
Returns the document for this node.
|
ExternMirror |
getExtern()
Returns the extern mirror of this node.
|
KeyMirror |
getKey()
Returns the key mirror of this node.
|
OperatorDescription.Node.Kind |
getKind()
Returns the kind of this node.
|
String |
getName()
Returns the name of this node.
|
OperatorDescription.Reference |
getReference()
Returns the reference to original component.
|
TypeMirror |
getType()
Returns the type of this node.
|
String |
toString() |
OperatorDescription.Node |
with(Consumer<? super OperatorDescription.Node> action)
Processes this node.
|
OperatorDescription.Node |
withAttribute(ValueDescription attribute)
Adds an attribute.
|
OperatorDescription.Node |
withExtern(ExternMirror newValue)
Sets the extern mirror.
|
OperatorDescription.Node |
withKey(KeyMirror newValue)
Sets the key mirror.
|
public Node(OperatorDescription.Node.Kind kind, String name, OperatorDescription.Document document, TypeMirror type, OperatorDescription.Reference reference)
kind - the kind of this nodename - the name of this nodedocument - the document for this nodetype - the type of this nodereference - the reference to original declarationIllegalArgumentException - if some parameters were nullpublic OperatorDescription.Node with(Consumer<? super OperatorDescription.Node> action)
action - the actionpublic OperatorDescription.Node.Kind getKind()
public String getName()
public OperatorDescription.Document getDocument()
public TypeMirror getType()
public OperatorDescription.Reference getReference()
public OperatorDescription.Node withKey(KeyMirror newValue)
newValue - the key mirrorpublic KeyMirror getKey()
null if this does not have any keyspublic OperatorDescription.Node withExtern(ExternMirror newValue)
newValue - the extern mirrorpublic ExternMirror getExtern()
null if this does not have any externspublic OperatorDescription.Node withAttribute(ValueDescription attribute)
attribute - the attributepublic List<ValueDescription> getAttributes()
AttributeContainergetAttributes in interface AttributeContainerCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.