A

ArrayItemNode — Class in namespace Nette\Neon\Node
ArrayNode — Class in namespace Nette\Neon\Node

B

$ Encoder#blockMode — Property in class Encoder
BlockArrayNode — Class in namespace Nette\Neon\Node
LiteralNode::baseConvert() — Method in class LiteralNode

Converts a base-N digit string to an integer, or to a decimal string if it exceeds PHP_INT_MAX.

D

Decoder — Class in namespace Nette\Neon

Parser for Nette Object Notation.

Decoder::decode() — Method in class Decoder

Parses a NEON string and returns the corresponding PHP value.

Neon::decode() — Method in class Neon

Parses a NEON string and returns the corresponding PHP value.

Neon::decodeFile() — Method in class Neon

Parses a NEON file and returns the corresponding PHP value. Strips the UTF-8 BOM if present.

E

Encoder — Class in namespace Nette\Neon

Converts value to NEON format.

Encoder::encode() — Method in class Encoder

Encodes a PHP value to a NEON string.

Entity — Class in namespace Nette\Neon

Representation of a NEON entity, e.g. Column(type: int).

Exception — Class in namespace Nette\Neon

The exception that indicates error of NEON processing.

Neon::encode() — Method in class Neon

Encodes a PHP value to a NEON string.

$ Node#endTokenPos — Property in class Node
$ Node#end — Property in class Node
EntityChainNode — Class in namespace Nette\Neon\Node
EntityNode — Class in namespace Nette\Neon\Node
TokenStream::error() — Method in class TokenStream

Throws a parsing exception with position information from the current or given token.

G

Node::getIterator() — Method in class Node
ArrayItemNode::getIterator() — Method in class ArrayItemNode
ArrayNode::getIterator() — Method in class ArrayNode
EntityChainNode::getIterator() — Method in class EntityChainNode
EntityNode::getIterator() — Method in class EntityNode
TokenStream::getIndex() — Method in class TokenStream
TokenStream::getIndentation() — Method in class TokenStream

Returns the whitespace indentation of the token at the current position, i.e. the whitespace token immediately following a newline (or at the start).

I

$ Encoder#indentation — Property in class Encoder
ArrayItemNode::itemsToArray() — Method in class ArrayItemNode
ArrayItemNode::itemsToInlineString() — Method in class ArrayItemNode
ArrayItemNode::itemsToBlockString() — Method in class ArrayItemNode
$ ArrayNode#items — Property in class ArrayNode
InlineArrayNode — Class in namespace Nette\Neon\Node
Token::is() — Method in class Token
TokenStream::is() — Method in class TokenStream

Tells whether the token at current position is of given kind.

K

$ ArrayItemNode#key — Property in class ArrayItemNode

L

Lexer — Class in namespace Nette\Neon
LiteralNode — Class in namespace Nette\Neon\Node

N

Neon — Class in namespace Nette\Neon

Facade for parsing and encoding the NEON format.

Node — Class in namespace Nette\Neon

Base class for all AST nodes produced by the NEON parser.

P

Decoder::parseToNode() — Method in class Decoder

Parses a NEON string and returns the root AST node.

$ Exception#position — Property in class Exception
LiteralNode::parse() — Method in class LiteralNode
StringNode::parse() — Method in class StringNode

Parses a raw NEON string token (including its delimiters) and returns the decoded string value.

Parser — Class in namespace Nette\Neon
Parser::parse() — Method in class Parser

Parses a token stream into an AST.

Position — Class in namespace Nette\Neon

Represents a position (line, column, offset) within a NEON input string.

R

Lexer::requiresDelimiters() — Method in class Lexer

Checks whether the string must be quoted when encoding to NEON.

S

$ Node#startTokenPos — Property in class Node
$ Node#start — Property in class Node
StringNode — Class in namespace Nette\Neon\Node
TokenStream::seek() — Method in class TokenStream

T

Lexer::tokenize() — Method in class Lexer

Tokenizes a NEON string into a TokenStream. Normalizes CR line endings.

Node::toValue() — Method in class Node

Converts the node to its PHP value.

Node::toString() — Method in class Node

Converts the node back to its NEON representation.

ArrayItemNode::toValue() — Method in class ArrayItemNode

Use itemsToArray() on the parent array node instead.

ArrayItemNode::toString() — Method in class ArrayItemNode

Use itemsToBlockString() or itemsToInlineString() instead.

ArrayNode::toValue() — Method in class ArrayNode
BlockArrayNode::toString() — Method in class BlockArrayNode

Converts the node back to its NEON representation.

EntityChainNode::toValue() — Method in class EntityChainNode

Converts the node to its PHP value.

EntityChainNode::toString() — Method in class EntityChainNode

Converts the node back to its NEON representation.

EntityNode::toValue() — Method in class EntityNode

Converts the node to its PHP value.

EntityNode::toString() — Method in class EntityNode

Converts the node back to its NEON representation.

InlineArrayNode::toString() — Method in class InlineArrayNode

Converts the node back to its NEON representation.

LiteralNode::toValue() — Method in class LiteralNode
LiteralNode::toString() — Method in class LiteralNode

Converts the node back to its NEON representation.

StringNode::toValue() — Method in class StringNode

Converts the node to its PHP value.

StringNode::toString() — Method in class StringNode

Converts the node back to its NEON representation.

Token — Class in namespace Nette\Neon
TokenStream — Class in namespace Nette\Neon
TokenStream::tryConsume() — Method in class TokenStream

Consumes the current token of given kind or returns null.

Traverser — Class in namespace Nette\Neon
Traverser::traverse() — Method in class Traverser

V

Encoder::valueToNode() — Method in class Encoder

Converts a PHP value to its AST node representation.

$ ArrayItemNode#value — Property in class ArrayItemNode

_

Entity::__construct() — Method in class Entity
Entity::__set_state() — Method in class Entity
Exception::__construct() — Method in class Exception
BlockArrayNode::__construct() — Method in class BlockArrayNode
EntityChainNode::__construct() — Method in class EntityChainNode
EntityNode::__construct() — Method in class EntityNode
InlineArrayNode::__construct() — Method in class InlineArrayNode
LiteralNode::__construct() — Method in class LiteralNode
StringNode::__construct() — Method in class StringNode
Position::__construct() — Method in class Position
Position::__toString() — Method in class Position
Token::__construct() — Method in class Token
TokenStream::__construct() — Method in class TokenStream