android-components / mozilla.components.lib.jexl.grammar / GrammarElement

GrammarElement

data class GrammarElement (source)

Constructors

Name Summary
<init> GrammarElement(type: Type, precedence: Int = 0, evaluate: (JexlValue, JexlValue) -> JexlValue = null)

Properties

Name Summary
evaluate val evaluate: (JexlValue, JexlValue) -> JexlValue
precedence val precedence: Int
type val type: Type

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.