A

ArrayItemNodeClass in namespace Nette\Neon\Node
ArrayNodeClass in namespace Nette\Neon\Node

B

$ Encoder#blockModeProperty in class Encoder
BlockArrayNodeClass 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.

C

TokenStream::consume() — Method in class TokenStream

Consumes and returns the next token if it matches one of the given types, or null otherwise.

D

DecoderClass 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

EncoderClass in namespace Nette\Neon

Converts value to NEON format.

Encoder::encode() — Method in class Encoder

Encodes a PHP value to a NEON string.

EntityClass in namespace Nette\Neon

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

ExceptionClass 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#endTokenPosProperty in class Node
$ Node#endLineProperty in class Node
EntityChainNodeClass in namespace Nette\Neon\Node
EntityNodeClass in namespace Nette\Neon\Node
TokenStream::error() — Method in class TokenStream

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::getPos() — Method in class TokenStream
TokenStream::getTokens() — 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#indentationProperty in class Encoder
ArrayItemNode::itemsToArray() — Method in class ArrayItemNode
ArrayItemNode::itemsToInlineString() — Method in class ArrayItemNode
ArrayItemNode::itemsToBlockString() — Method in class ArrayItemNode
$ ArrayNode#itemsProperty in class ArrayNode
InlineArrayNodeClass in namespace Nette\Neon\Node
TokenStream::isNext() — Method in class TokenStream

Skips comments and whitespace, then checks whether the next token matches one of the given types.

K

$ ArrayItemNode#keyProperty in class ArrayItemNode

L

LexerClass in namespace Nette\Neon
LiteralNodeClass in namespace Nette\Neon\Node

N

NeonClass in namespace Nette\Neon

Facade for parsing and encoding the NEON format.

NodeClass 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.

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.

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

Parses a token stream into an AST.

R

Lexer::requiresDelimiters() — Method in class Lexer

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

S

$ Node#startTokenPosProperty in class Node
$ Node#startLineProperty in class Node
StringNodeClass 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
ArrayItemNode::toString() — Method in class ArrayItemNode
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.

TokenClass in namespace Nette\Neon
TokenStreamClass in namespace Nette\Neon
TraverserClass 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#valueProperty in class ArrayItemNode

_

Entity::__construct() — Method in class Entity
Entity::__set_state() — Method in class Entity
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
Token::__construct() — Method in class Token
TokenStream::__construct() — Method in class TokenStream