Class Signature.ListSig
java.lang.Object
com.singularsys.extensions.lambda.Signature
com.singularsys.extensions.lambda.Signature.OuterSig
com.singularsys.extensions.lambda.Signature.ListSig
- Enclosing class:
Signature
A Signature representing a list of signatures
-
Nested Class Summary
Nested classes/interfaces inherited from class com.singularsys.extensions.lambda.Signature
Signature.InnerSig, Signature.ListSig, Signature.OuterSig, Signature.Pat, Signature.PVbl, Signature.Vbl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Signature.InnerSig sig) Add a signature to the list.protected voidcalculateArgs(Stack<Object> stack, List<Object> args) Convert arguments on the stack to a list of arguments matching the pattern in this signaturegetSigs()Return a list of signaturesbooleanisSimple()Simple signatures likexor[x,y,z]protected booleanprotected booleanbooleanintsize()Number of element in a compound signaturetoString()Methods inherited from class com.singularsys.extensions.lambda.Signature
calcInnerSig, calcSig
-
Constructor Details
-
ListSig
public ListSig()
-
-
Method Details
-
add
Add a signature to the list.- Parameters:
sig- signature to add
-
getSigs
Description copied from class:SignatureReturn a list of signatures -
isSimple
public boolean isSimple()Description copied from class:SignatureSimple signatures likexor[x,y,z] -
size
public int size()Description copied from class:SignatureNumber of element in a compound signature -
calculateArgs
Description copied from class:SignatureConvert arguments on the stack to a list of arguments matching the pattern in this signature- Specified by:
calculateArgsin classSignature- Parameters:
stack- input arguments to the functionargs- output list of values matching the variables in the signature- Throws:
EvaluationException- on error
-
toString
-
match
-
match
-
matchN
-