PHP Class Youshido\GraphQL\Parser\Parser

Inheritance: extends Tokenizer
Datei anzeigen Open project: youshido/graphql Class Usage Examples

Public Methods

Method Description
parse ( $source = null )

Protected Methods

Method Description
eat ( $type )
eatIdentifierToken ( )
eatMulti ( $types )
expectMulti ( $types )
findVariable ( $name )
matchMulti ( $types )
parseArgument ( )
parseArgumentList ( )
parseBody ( $token = Token::TYPE_QUERY, $highLevel = true )
parseBodyItem ( $type = Token::TYPE_QUERY, $highLevel = true )
parseFragment ( )
parseFragmentReference ( )
parseList ( $createType = true )
parseListValue ( )
parseObject ( $createType = true )
parseValue ( ) : array | InputList | InputObject | Literal | VariableReference
parseVariableReference ( )
parseVariables ( )

Private Methods

Method Description
init ( $source = null )

Method Details

eat() protected method

protected eat ( $type )

eatIdentifierToken() protected method

protected eatIdentifierToken ( )

eatMulti() protected method

protected eatMulti ( $types )

expectMulti() protected method

protected expectMulti ( $types )

findVariable() protected method

protected findVariable ( $name )

matchMulti() protected method

protected matchMulti ( $types )

parse() public method

public parse ( $source = null )

parseArgument() protected method

protected parseArgument ( )

parseArgumentList() protected method

protected parseArgumentList ( )

parseBody() protected method

protected parseBody ( $token = Token::TYPE_QUERY, $highLevel = true )

parseBodyItem() protected method

protected parseBodyItem ( $type = Token::TYPE_QUERY, $highLevel = true )

parseFragment() protected method

protected parseFragment ( )

parseFragmentReference() protected method

protected parseFragmentReference ( )

parseList() protected method

protected parseList ( $createType = true )

parseListValue() protected method

protected parseListValue ( )

parseObject() protected method

protected parseObject ( $createType = true )

parseValue() protected method

protected parseValue ( ) : array | InputList | InputObject | Literal | VariableReference
return array | Youshido\GraphQL\Parser\Ast\ArgumentValue\InputList | Youshido\GraphQL\Parser\Ast\ArgumentValue\InputObject | Youshido\GraphQL\Parser\Ast\ArgumentValue\Literal | Youshido\GraphQL\Parser\Ast\ArgumentValue\VariableReference

parseVariableReference() protected method

protected parseVariableReference ( )

parseVariables() protected method

protected parseVariables ( )