public final class KeywordArgument extends DataObject implements FunctionArgument
DataObject
that represents a keyword as a function argument.Constructor and Description |
---|
KeywordArgument(java.lang.String name)
Creates an
KeywordArgument with the specified name. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object rhs)
Indicates whether this
KeywordArgument is the same as the specified KeywordArgument . |
java.lang.String |
getName()
Gets the name of this
KeywordArgument . |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitKeywordArgument method of the SyntaxObjectVisitor and passes that method this KeywordArgument and an Object . |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public KeywordArgument(java.lang.String name)
KeywordArgument
with the specified name.name
- A String
that contains a name for the new KeywordArgument</CODE.
Method Detail
visit
public java.lang.Object visit(SyntaxObjectVisitor visitor,
java.lang.Object context)
Calls the visitKeywordArgument
method of the SyntaxObjectVisitor
and passes that method this KeywordArgument
and an Object
.
visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitKeywordArgument
method.public java.lang.String getName()
KeywordArgument
.String
that contains the name of this KeywordArgument</CODE.
equals
public boolean equals(java.lang.Object rhs)
Indicates whether this KeywordArgument
is the same as the specified KeywordArgument
.
equals
in class java.lang.Object
rhs
- A KeywordArgument
to compare to this KeywordArgument
.boolean
that is true
if this KeywordArgument
is the same as the input KeywordArgument
or is false
otherwise.