net.jangaroo.jooc
Interface SyntacticKeywords


public interface SyntacticKeywords

Identifiers with special meaning become keywords in certain syntactic contexts:

In a for-each-in statement between the 'for' token and the '(' token: each In a function definition between the 'function' token and an identifier token: get set As the first word of a directive: namespace include In an attribute list or wherever an attribute list can be used: dynamic final native override static

It is a syntax error to use a syntactic keyword in a context where it is treated as a keyword:

namespace = "hello" namespace()

In these cases, the grammar requires an identifier after the namespace keyword.


Field Summary
static String ASSERT
           
static String DYNAMIC
           
static String EACH
           
static String FINAL
           
static String GET
           
static String INCLUDE
           
static String NAMESPACE
           
static String NATIVE
           
static String OVERRIDE
           
static Set<String> RESERVED_WORDS
           
static String SET
           
static String STATIC
           
static String VIRTUAL
           
 

Field Detail

ASSERT

static final String ASSERT
See Also:
Constant Field Values

DYNAMIC

static final String DYNAMIC
See Also:
Constant Field Values

EACH

static final String EACH
See Also:
Constant Field Values

FINAL

static final String FINAL
See Also:
Constant Field Values

GET

static final String GET
See Also:
Constant Field Values

INCLUDE

static final String INCLUDE
See Also:
Constant Field Values

NAMESPACE

static final String NAMESPACE
See Also:
Constant Field Values

NATIVE

static final String NATIVE
See Also:
Constant Field Values

OVERRIDE

static final String OVERRIDE
See Also:
Constant Field Values

SET

static final String SET
See Also:
Constant Field Values

STATIC

static final String STATIC
See Also:
Constant Field Values

VIRTUAL

static final String VIRTUAL
See Also:
Constant Field Values

RESERVED_WORDS

static final Set<String> RESERVED_WORDS


Copyright © 2002–2014 CoreMedia AG. All rights reserved.