AOWP_PHPElement
└─AOWP_PHPArrayElement
public class AOWP_PHPArrayElement
extends AOWP_PHPElement
Field Summary | |
---|---|
array | {@link AOWP_PHPArrayPairElement} の配列。 |
Fields inherited from aowp.parser.ast.AOWP_PHPElement | |
---|---|
NO_ARRAY, _line, parent, propertyIndex, propertyName |
Constructor Summary | |
---|---|
AOWP_PHPArrayElement(mixed _line, mixed pairs) |
Method Summary | |
---|---|
void | |
void | addElement(mixed keyOrValue, mixed value, $value ) 配列の要素を、追加します。 このメソッドは、引き数を1つだけ指定し、要素の値のみを代入する場合と、 キーと値の2つの引き数を指定する呼び出し方が有ります。 引き数の型は、{@link AOWP_PHPVariableElement} or {@link AOWP_PHPReferenceVariableElement} or {@link AOWP_ScalarExprElement} です。 |
void | kind() |
Methods inherited from aowp.parser.ast.AOWP_PHPElement | |
---|---|
__clone, __toString, getChildren, getParent, getParentContainer, getParentPropertyIndex, getParentPropertyName, initialize, kind, line, releaseInstance, setParent, setParentInfo |
public array $pairs
public AOWP_PHPArrayElement(mixed _line, mixed pairs)
public void __toString()
public void addElement(mixed keyOrValue, mixed value, $value )
配列の要素を、追加します。
このメソッドは、引き数を1つだけ指定し、要素の値のみを代入する場合と、
キーと値の2つの引き数を指定する呼び出し方が有ります。
引き数の型は、AOWP_PHPVariableElement
or AOWP_PHPReferenceVariableElement
or
AOWP_ScalarExprElement
です。
public void kind()
PHPのASTにおける「array」を表すクラス。 文法規則: function_call_parameter_list。