AOWP_PHPElement
└─AOWP_PHPInnerStatementContainerElement
└─AOWP_PHPFunctionElement
public class AOWP_PHPFunctionElement
extends AOWP_PHPInnerStatementContainerElement
Field Summary | |
---|---|
AOWP_Token | {@link AOWP_Token} (未確認。他にも来るかも。)。 |
mixed | |
array | {@link AOWP_PHPParamaterElement}の配列 |
Fields inherited from aowp.parser.ast.util.AOWP_PHPInnerStatementContainerElement | |
---|---|
innerStatements |
Fields inherited from aowp.parser.ast.AOWP_PHPElement | |
---|---|
NO_ARRAY, _line, parent, propertyIndex, propertyName |
Constructor Summary | |
---|---|
AOWP_PHPFunctionElement(mixed _lineOrFunctionName, mixed isReference, mixed functionName, mixed paramaters, mixed innerStatements) |
Method Summary | |
---|---|
void | |
void | addAmpersandParameter(mixed parameterName, mixed initialValue, mixed classTypeName) |
unknown_type | addParameter(mixed parameterName, mixed initialValue, mixed classTypeName, $classTypeName ) |
string | 関数名を取得します。 |
void | |
string | getParameterName(int index) 引き数で指定した、このインスタンスが表す関数の引き数の名前を、取得します。 引き数で指定した、引き数が無い場合、nullを返します。 |
void | kind() |
Methods inherited from aowp.parser.ast.util.AOWP_PHPInnerStatementContainerElement | |
---|---|
getInnerStatements, insertElement, insertElementArray, removeAllElements, removeElement, replaceElement, replaceElementWithElements, searchElementIndex, setElement, setElements, spliceStatement |
Methods inherited from aowp.parser.ast.AOWP_PHPElement | |
---|---|
__clone, __toString, getChildren, getParent, getParentContainer, getParentPropertyIndex, getParentPropertyName, initialize, kind, line, releaseInstance, setParent, setParentInfo |
public AOWP_Token $functionName
AOWP_Token
(未確認。他にも来るかも。)。
public mixed $isReference
public array $paramaters
public AOWP_PHPFunctionElement(mixed _lineOrFunctionName, mixed isReference, mixed functionName, mixed paramaters, mixed innerStatements)
public void __toString()
public void addAmpersandParameter(mixed parameterName, mixed initialValue, mixed classTypeName)
public unknown_type addParameter(mixed parameterName, mixed initialValue, mixed classTypeName, $classTypeName )
public string getFunctionName()
関数名を取得します。
public void getParameterCount()
public string getParameterName(int index)
引き数で指定した、このインスタンスが表す関数の引き数の名前を、取得します。 引き数で指定した、引き数が無い場合、nullを返します。
public void kind()
PHPFunctionElement PHPのASTにおける「関数」を表すクラス 文法規則: unticked_function_declaration_statement