cc.redberry.core.parser
Class ParseTokenScalarFunction
- java.lang.Object
-
- cc.redberry.core.parser.ParseToken
-
- cc.redberry.core.parser.ParseTokenScalarFunction
-
public final class ParseTokenScalarFunction extends ParseToken
AST node for scalar functions.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.StringfunctionFunction string name.-
Fields inherited from class cc.redberry.core.parser.ParseToken
content, parent, tokenType
-
-
Constructor Summary
Constructors Constructor and Description ParseTokenScalarFunction(java.lang.String function, ParseToken[] content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)IndicesgetIndices()ReturnsIndicesof the corresponding mathematical expression.java.lang.StringtoString()TensortoTensor()Converts this AST to tensor.-
Methods inherited from class cc.redberry.core.parser.ParseToken
toString
-
-
-
-
Constructor Detail
-
ParseTokenScalarFunction
public ParseTokenScalarFunction(java.lang.String function, ParseToken[] content)- Parameters:
function- function string namecontent- child nodes
-
-
Method Detail
-
getIndices
public Indices getIndices()
Description copied from class:ParseTokenReturnsIndicesof the corresponding mathematical expression.- Overrides:
getIndicesin classParseToken- Returns:
Indicesof the corresponding mathematical expression
-
toString
public java.lang.String toString()
- Overrides:
toStringin classParseToken
-
toTensor
public Tensor toTensor()
Description copied from class:ParseTokenConverts this AST to tensor.- Overrides:
toTensorin classParseToken- Returns:
- resulting tensor
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classParseToken
-
-
DataMelt 3.0 © DataMelt by jWork.ORG