public final class DefinitionState
extends java.lang.Object
Constructor and Description |
---|
DefinitionState(QuercusContext quercus) |
Modifier and Type | Method and Description |
---|---|
void |
addClassDef(java.lang.String name,
ClassDef cl)
Adds a class, e.g.
|
Value |
addFunction(StringValue name,
AbstractFunction fun)
Adds a function, e.g.
|
Value |
addFunction(StringValue name,
StringValue lowerName,
AbstractFunction fun)
Adds a function from a compiled include
|
DefinitionState |
copy() |
DefinitionState |
copyLazy() |
ClassDef |
findClassDef(java.lang.String name)
Adds a class, e.g.
|
AbstractFunction |
findFunction(StringValue name)
Finds the java reflection method for the function with the given name.
|
long |
getCrc()
returns the crc.
|
Value |
getDeclaredClasses(Env env)
Returns the declared classes.
|
ArrayValue |
getDefinedFunctions()
Returns an array of the defined functions.
|
QuercusContext |
getQuercus()
Returns the owning PHP engine.
|
boolean |
isStrict()
Returns true for strict mode.
|
public DefinitionState(QuercusContext quercus)
public final boolean isStrict()
public QuercusContext getQuercus()
public long getCrc()
public ArrayValue getDefinedFunctions()
public AbstractFunction findFunction(StringValue name)
name
- the method namepublic Value addFunction(StringValue name, AbstractFunction fun)
public Value addFunction(StringValue name, StringValue lowerName, AbstractFunction fun)
name
- the function name, must be an intern() stringlowerName
- the function name, must be an intern() stringpublic void addClassDef(java.lang.String name, ClassDef cl)
public ClassDef findClassDef(java.lang.String name)
public Value getDeclaredClasses(Env env)
public DefinitionState copy()
public DefinitionState copyLazy()