Instance Constructors
-
new
Syntax
(precedence: Int, left: Int, right: Array[Int], ret: Int, defaultOption: Option[Int], minimumOption: Option[Int], isRightAssociative: Boolean, agentClassString: String, blockAgentClassString: String, switches: Boolean)
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
val
agentClassString
: String
-
def
asInstanceOf
[T0]
: T0
-
val
blockAgentClassString
: String
-
def
canEqual
(arg0: Any): Boolean
-
def
clone
(): AnyRef
-
val
defaultOption
: Option[Int]
-
def
dfault
: Int
-
def
dump
: String
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
isInfix
: Boolean
-
def
isInstanceOf
[T0]
: Boolean
-
val
isRightAssociative
: Boolean
-
val
left
: Int
-
def
minimum
: Int
-
val
minimumOption
: Option[Int]
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
val
precedence
: Int
-
def
productArity
: Int
-
def
productElement
(arg0: Int): Any
-
def
productIterator
: Iterator[Any]
-
def
productPrefix
: String
-
val
ret
: Int
-
val
right
: Array[Int]
-
def
rightDefault
: Int
-
val
switches
: Boolean
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
takesOptionalCommandBlock
: Boolean
-
def
toString
(): String
-
def
totalDefault
: Int
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Deprecated Value Members
-
def
productElements
: Iterator[Any]
Inherited from Serializable
Inherited from Serializable
Inherited from Product
Inherited from Equals
Inherited from AnyRef
Inherited from Any
Specifies the arguments accepted by a primitive. Used by the compiler for type-checking.
You cannot instantiate this class directly. Instead, use the static construction methods
Syntax.commandSyntax(...)
orSyntax.reporterSyntax(...)
.For example, in a
Reporter
that takes two number arguments and returns a boolean, implementPrimitive.getSyntax()
as follows:An input can be made variadic, meaning that it can be repeated any number of times when enclosed in parentheses, if you add the
RepeatableType
flag. When using variadic inputs you should also define the default number of inputs, that is, the number of inputs expect if the user does not use parentheses. For example:Primitive#getSyntax()