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 IFunctionContentsPart
public void setContentsNode(ScopedBlockNode contents)
setContentsNode
in interface IFunctionContentsPart
public void setKeywordNode(KeywordNode node)
setKeywordNode
in interface IFunctionContentsPart
public ContainerNode getParametersNode()
IFunctionContentsPart
getParametersNode
in interface IFunctionContentsPart
public ScopedBlockNode getContents()
IFunctionContentsPart
getContents
in interface IFunctionContentsPart
public KeywordNode getFunctionKeywordNode()
IFunctionContentsPart
getFunctionKeywordNode
in interface IFunctionContentsPart
public void optimize()
optimize
in interface IFunctionContentsPart
Copyright © 2016 The Apache Software Foundation. All rights reserved.