AOWP_PHPElement
└─AOWP_PHPFileIncludeStatementElement
public class AOWP_PHPFileIncludeStatementElement
extends AOWP_PHPElement
Field Summary | |
---|---|
final str | |
final str | |
final str | |
final str | |
AOWP_PHPElement | require_once 'sample.php'; require $a; include_once $b['a']; include $a->b(); 上から順に、{@link AOWP_PHPScalarExprElement}、{@link AOWP_PHPVariableElement}、 {@link AOWP_PHPReferenceVariableElement}、{@link AOWP_PHPObjectOperatorElement}。 |
string |
Fields inherited from aowp.parser.ast.AOWP_PHPElement | |
---|---|
NO_ARRAY, _line, parent, propertyIndex, propertyName |
Constructor Summary | |
---|---|
AOWP_PHPFileIncludeStatementElement(mixed _line, mixed type, mixed expr) |
Method Summary | |
---|---|
void | |
string | |
void | kind() |
void | setScalarExpr(string exprString) |
Methods inherited from aowp.parser.ast.AOWP_PHPElement | |
---|---|
__clone, __toString, getChildren, getParent, getParentContainer, getParentPropertyIndex, getParentPropertyName, initialize, kind, line, releaseInstance, setParent, setParentInfo |
public final str TYPE_INCLUDE = 'include'
public final str TYPE_INCLUDE_ONCE = 'include_once'
public final str TYPE_REQUIRE = 'require'
public final str TYPE_REQUIRE_ONCE = 'require_once'
public AOWP_PHPElement $expr
require_once 'sample.php';
require $a;
include_once $b['a'];
include $a->b();
上から順に、AOWP_PHPScalarExprElement
、AOWP_PHPVariableElement
、
AOWP_PHPReferenceVariableElement
、AOWP_PHPObjectOperatorElement
。
public string $type
public AOWP_PHPFileIncludeStatementElement(mixed _line, mixed type, mixed expr)
public void __toString()
public string getScalarExprFileName()
public void kind()
public void setScalarExpr(string exprString)
PHPのASTにおける「include, require」を表すクラス。 文法規則: unticked_statement。