case class
Syntax(precedence: Int, left: Int, right: Array[Int], ret: Int, defaultOption: Option[Int], minimumOption: Option[Int], isRightAssociative: Boolean, agentClassString: String, blockAgentClassString: String, switches: Boolean) extends Product with Serializable
Instance Constructors
-
new
Syntax(precedence: Int, left: Int = Syntax.VoidType, right: Array[Int] = ..., ret: Int = Syntax.VoidType, defaultOption: Option[Int] = scala.None, minimumOption: Option[Int] = scala.None, isRightAssociative: Boolean = false, agentClassString: String = "OTPL", blockAgentClassString: String = null, switches: Boolean = false)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
val
agentClassString: String
-
final
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
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): java.lang.Class[_]
-
def
hashCode(): Int
-
def
isInfix: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
val
isRightAssociative: Boolean
-
val
left: Int
-
def
minimum: Int
-
val
minimumOption: Option[Int]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
takesOptionalCommandBlock: Boolean
-
def
toString(): String
-
def
totalDefault: Int
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Deprecated Value Members
-
def
productElements: Iterator[Any]
Inherited from Product
Value Members
-
def
productIterator: Iterator[Any]
-
def
productElements: Iterator[Any]
Inherited from AnyRef
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): java.lang.Class[_]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Any
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
final
def
isInstanceOf[T0]: Boolean
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()