public class FunctionContentsPart extends Object implements IFunctionContentsPart
| Modifier and Type | Field and Description |
|---|---|
protected ContainerNode |
argumentsNode
The arguments of this function (ContainerNode full of ArgumentNodes)
|
protected ScopedBlockNode |
contentsNode
The contents of this function
|
protected KeywordNode |
functionKeywordNode
The "function" keyword
|
| Constructor and Description |
|---|
FunctionContentsPart() |
| Modifier and Type | Method and Description |
|---|---|
ScopedBlockNode |
getContents()
Get the contents of this function
|
KeywordNode |
getFunctionKeywordNode()
Get the function keyword
|
ContainerNode |
getParametersNode()
Get the arguments of this function as a ContainerNode full of
ArgumentNodes
|
void |
optimize() |
void |
setArgumentsNode(ContainerNode args) |
void |
setContentsNode(ScopedBlockNode contents) |
void |
setKeywordNode(KeywordNode node) |
protected KeywordNode functionKeywordNode
protected ContainerNode argumentsNode
protected ScopedBlockNode contentsNode
public void setArgumentsNode(ContainerNode args)
setArgumentsNode in interface IFunctionContentsPartpublic void setContentsNode(ScopedBlockNode contents)
setContentsNode in interface IFunctionContentsPartpublic void setKeywordNode(KeywordNode node)
setKeywordNode in interface IFunctionContentsPartpublic ContainerNode getParametersNode()
IFunctionContentsPartgetParametersNode in interface IFunctionContentsPartpublic ScopedBlockNode getContents()
IFunctionContentsPartgetContents in interface IFunctionContentsPartpublic KeywordNode getFunctionKeywordNode()
IFunctionContentsPartgetFunctionKeywordNode in interface IFunctionContentsPartpublic void optimize()
optimize in interface IFunctionContentsPartCopyright © 2016 The Apache Software Foundation. All rights reserved.