public class Symbol extends Object
Jiffle does not (yet) support user-defined functions in scripts, so all symbols are variables.
Adapted from "Language Implementation Patterns" by Terence Parr, published by The Pragmatic Bookshelf, 2010.
Modifier and Type | Class and Description |
---|---|
static class |
Symbol.Type |
Constructor and Description |
---|
Symbol(String name,
Symbol.Type type)
Creates a new symbol.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name.
|
Symbol.Type |
getType()
Gets the type.
|
String |
toString() |
public Symbol(String name, Symbol.Type type)
name
- name in scripttype
- symbol typepublic String getName()
public Symbol.Type getType()
Copyright © 2006–2018 GeoSolutions. All rights reserved.