Interface NewOperation
-
- All Known Implementing Classes:
NewArray
,NewConfiguration
,NewConfigurationNode
,NewConnectionName
,NewDictionary
,NewQueryArgument
,NewURL
public interface NewOperation
Interface describing what a "new" operation needs to do.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VariableReference
parseAndCreate(ScriptParser sp, TokenStream currentStream)
Parse and execute.void
parseAndSkip(ScriptParser sp, TokenStream currentStream)
Parse and skip.
-
-
-
Method Detail
-
parseAndCreate
VariableReference parseAndCreate(ScriptParser sp, TokenStream currentStream) throws ScriptException
Parse and execute. Parsing begins right after the "new" keyword and the operation name token.- Parameters:
sp
- is the script parser to use to help in the parsing.currentStream
- is the current token stream.- Returns:
- the variable reference that got created. Should never be null.
- Throws:
ScriptException
-
parseAndSkip
void parseAndSkip(ScriptParser sp, TokenStream currentStream) throws ScriptException
Parse and skip. Parsing begins right after the "new" keyword and the operation name token.- Parameters:
sp
- is the script parser to use to help in the parsing.currentStream
- is the current token stream.- Throws:
ScriptException
-
-