Modifier and Type | Class and Description |
---|---|
static class |
Env.OVERLOADING_TYPES |
Constructor and Description |
---|
Env(QuercusContext quercus) |
Env(QuercusContext quercus,
QuercusPage page,
WriteStream out,
QuercusHttpServletRequest request,
QuercusHttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
addAutoloadFunction(Callable fun,
boolean isPrepend)
Registers an SPL autoload function.
|
void |
addClass(ClassDef def,
int classId,
int parentId)
Adds the class with the given name
|
void |
addClass(java.lang.String name,
ClassDef def) |
void |
addClassAlias(java.lang.String alias,
QuercusClass cls)
Adds a class alias.
|
void |
addClassDef(java.lang.String name,
ClassDef cl)
Adds a class, e.g.
|
void |
addCleanup(EnvCleanup envCleanup)
add resource to the list of refrences that are
cleaned up when finished with this environment.
|
Value |
addConstant(int id,
Value value,
boolean isCaseInsensitive)
Sets a constant.
|
Value |
addConstant(java.lang.String name,
Value value,
boolean isCaseInsensitive)
Sets a constant.
|
Value |
addConstant(StringValue name,
Value value,
boolean isCaseInsensitive)
Sets a constant.
|
Value |
addFunction(java.lang.String name,
AbstractFunction fun) |
Value |
addFunction(StringValue name,
AbstractFunction fun) |
Value |
addFunctionFromPage(java.lang.String name,
java.lang.String lowerName,
AbstractFunction fun)
Adds a function from a compiled include
|
void |
addInitializedClass(java.lang.String name)
Mark this class as being initialized.
|
void |
addObjectCleanup(ObjectValue objCleanup)
add an object with a destructor to the list of references that are
cleaned up when finished with this environment.
|
void |
addRemovePath(Path path)
Adds an auto-remove path.
|
void |
addShutdown(Callable callback,
Value[] args)
Registers a shutdown function.
|
void |
addStreamWrapper(StringValue name,
ProtocolWrapper wrapper) |
void |
addWildcardImport(java.lang.String name)
Adds a Quercus class import.
|
RegexpState |
allocateRegexpState()
Allocate the free regexp
|
Value |
call(StringValue name)
Evaluates the named function.
|
Value |
call(StringValue name,
Value a0)
Evaluates the named function.
|
Value |
call(StringValue name,
Value[] args)
Evaluates the named function.
|
Value |
call(StringValue name,
Value a0,
Value a1)
Evaluates the named function.
|
Value |
call(StringValue name,
Value a0,
Value a1,
Value a2)
Evaluates the named function.
|
Value |
call(StringValue name,
Value a0,
Value a1,
Value a2,
Value a3)
Evaluates the named function.
|
Value |
call(StringValue name,
Value a0,
Value a1,
Value a2,
Value a3,
Value a4)
Evaluates the named function.
|
Value |
callRef(StringValue name)
Evaluates the named function.
|
Value |
callRef(StringValue name,
Value a0)
EvalRefuates the named function.
|
Value |
callRef(StringValue name,
Value[] args)
Evaluates the named function.
|
Value |
callRef(StringValue name,
Value a0,
Value a1)
EvalRefuates the named function.
|
Value |
callRef(StringValue name,
Value a0,
Value a1,
Value a2)
EvalRefuates the named function.
|
Value |
callRef(StringValue name,
Value a0,
Value a1,
Value a2,
Value a3)
Evaluates the named function.
|
Value |
callRef(StringValue name,
Value a0,
Value a1,
Value a2,
Value a3,
Value a4)
Evaluates the named function.
|
Value |
cast(java.lang.Class<?> cl,
Value value)
Handles exit/die
|
void |
checkTimeout()
Checks for the program timeout.
|
void |
checkTypeHint(Value value,
java.lang.String type,
java.lang.String argName,
java.lang.String functionName)
Check for type hinting
|
void |
clearClassCache() |
void |
close()
Called when the Env is no longer needed.
|
void |
closeDuplex() |
static double |
comma(double a0,
double a1)
Returns the last value.
|
static Value |
comma(double a0,
Value a1)
Returns the last value.
|
static long |
comma(long a0,
long a1)
Returns the last value.
|
static Value |
comma(long a0,
Value a1)
Returns the last value.
|
static double |
comma(Value a0,
double a1)
Returns the last value.
|
static long |
comma(Value a0,
long a1)
Returns the last value.
|
static Value |
comma(Value a0,
Value a1)
Returns the last value.
|
static Value |
comma(Value a0,
Value a1,
Value a2)
Returns the last value.
|
static Value |
comma(Value a0,
Value a1,
Value a2,
Value a3)
Returns the last value.
|
static Value |
comma(Value a0,
Value a1,
Value a2,
Value a3,
Value a4)
Returns the last value.
|
Value |
compileError(java.lang.String msg)
A parse error
|
Value |
compileWarning(java.lang.String msg)
A parse warning
|
AbstractFunction |
createAnonymousFunction(java.lang.String args,
java.lang.String code) |
protected ArrayValue |
createArgv() |
StringValue |
createBinaryBuilder()
Creates a binary builder.
|
StringValue |
createBinaryBuilder(byte[] buffer)
Creates a binary builder.
|
StringValue |
createBinaryBuilder(byte[] buffer,
int offset,
int length)
Creates a binary builder.
|
StringValue |
createBinaryBuilder(int length)
Creates a binary builder.
|
StringValue |
createBinaryString(TempBuffer head)
Creates a PHP string from a buffer.
|
QuercusRuntimeException |
createErrorException(Location location,
java.lang.String msg)
A fatal runtime error.
|
QuercusRuntimeException |
createErrorException(java.lang.String msg)
A fatal runtime error.
|
QuercusRuntimeException |
createErrorException(java.lang.Throwable e)
A fatal runtime error.
|
Value |
createException(java.lang.String exceptionClass,
java.lang.String... args) |
Value |
createException(java.lang.String exceptionClass,
java.lang.String message) |
Value |
createException(java.lang.Throwable e)
Creates a PHP Exception.
|
ObjectValue |
createIncompleteObject(java.lang.String name)
Creates a stdClass object.
|
StringValue |
createLargeBinaryBuilder()
Creates a binary builder for large things like files.
|
ObjectValue |
createObject()
Creates a stdClass object.
|
SessionArrayValue |
createSession(java.lang.String sessionId,
boolean create)
Create the session.
|
StringValue |
createStaticName()
Gets a static variable name.
|
StringValue |
createString(byte[] buffer,
int offset,
int length)
Creates a PHP string from a byte buffer.
|
StringValue |
createString(char ch)
Creates a string from a byte.
|
StringValue |
createString(char[] buffer,
int length)
Creates a PHP string from a byte buffer.
|
StringValue |
createString(char[] buffer,
int offset,
int length)
Creates a PHP string from a char buffer.
|
StringValue |
createString(long value)
Creates a PHP string from a long.
|
StringValue |
createString(java.lang.String s)
Creates a PHP string from a java String.
|
StringValue |
createStringBuilder()
Creates an empty string builder.
|
StringValue |
createUnicodeBuilder()
Creates a unicode builder.
|
java.lang.String |
dbgId() |
protected static java.lang.String |
decodeValue(java.lang.String s) |
Value |
deprecatedArgument(java.lang.String name)
A warning about an deprecated argument passed to a function.
|
void |
destroySession(java.lang.String sessionId)
Destroy the session.
|
Value |
die()
Handles exit/die
|
Value |
die(java.lang.String msg)
Handles exit/die
|
Value |
error(int code,
java.lang.String msg)
Writes an error.
|
Value |
error(int code,
java.lang.String msg,
Location location)
Writes an error.
|
Value |
error(java.lang.String msg)
A fatal runtime error.
|
Value |
error(java.lang.String msg,
Location location)
A fatal runtime error.
|
Value |
error(java.lang.String msg,
java.lang.Throwable e)
A warning with an exception.
|
Value |
error(java.lang.Throwable e)
A warning with an exception.
|
Value |
evalCode(StringValue code)
Compiles and evalutes the given code
|
void |
execute()
Evaluates the top-level code and prepend and append code.
|
protected Value |
executePage(QuercusPage page)
Executes the given page
|
protected Value |
executePageTop(QuercusPage page)
Executes the given page
|
Value |
executeTop()
Evaluates the top-level code
|
Value |
exit()
Handles exit/die
|
Value |
exit(Value msg)
Handles exit/die
|
Value |
expectBoolean(Value value)
Check for expected type.
|
Value |
expectNumeric(Value value)
Check for expected type.
|
Value |
expectString(Value value)
Check for expected type.
|
protected void |
fillPost(ArrayValue postArray,
ArrayValue files,
QuercusHttpServletRequest request,
boolean isMagicQuotes) |
QuercusClass |
findAbstractClass(java.lang.String name)
Finds the class with the given name.
|
QuercusClass |
findClass(int id)
Finds the class with the given name id.
|
QuercusClass |
findClass(int id,
boolean useAutoload,
boolean useImport,
boolean useAliasMap)
Finds the class with the given name.
|
QuercusClass |
findClass(java.lang.String name)
Finds the class with the given name.
|
QuercusClass |
findClass(java.lang.String name,
boolean useAutoload,
boolean useImport,
boolean useAliasMap)
Finds the class with the given name.
|
QuercusClass |
findClass(java.lang.String name,
int id,
boolean useAutoload,
boolean useImport,
boolean useAliasMap)
Finds the class with the given name.
|
QuercusClass |
findClassByAlias(java.lang.String alias)
Finds the class with the given alias name.
|
ClassDef |
findClassDef(java.lang.String name) |
protected javax.sql.DataSource |
findDatabase(java.lang.String driver,
java.lang.String url) |
AbstractFunction |
findFunction(java.lang.String className,
java.lang.String methodName)
Finds the class and method.
|
AbstractFunction |
findFunction(StringValue name)
Returns the function with a given name.
|
int |
findFunctionId(StringValue name)
Returns the function with a given name.
|
static double |
first(double value,
double a1)
Returns the first value
|
static double |
first(double value,
Value a1)
Returns the first value
|
static long |
first(long value,
double a1)
Returns the first value
|
static long |
first(long value,
long a1)
Returns the first value
|
static long |
first(long value,
Value a1)
Returns the first value
|
static Value |
first(Value value)
Returns the first value
|
static Value |
first(Value value,
double a1)
Returns the first value
|
static Value |
first(Value value,
Value a1)
Returns the first value
|
static Value |
first(Value value,
Value a1,
Value a2)
Returns the first value
|
static Value |
first(Value value,
Value a1,
Value a2,
Value a3)
Returns the first value
|
static Value |
first(Value value,
Value a1,
Value a2,
Value a3,
Value a4)
Returns the first value
|
static Value |
first(Value value,
Value a1,
Value a2,
Value a3,
Value a4,
Value a5)
Returns the first value
|
void |
flush()
Flushes the output buffer.
|
void |
freeRegexpState(RegexpState state)
Free the free regexp
|
int |
generateObjectId()
Generate an object id.
|
java.lang.String |
generateSessionId()
Returns a new session id.
|
java.util.ArrayList<Callable> |
getAutoloadFunctions()
Returns the registered SPL autoload functions.
|
ByteToChar |
getByteToChar()
Returns the ByteToChar converter.
|
int |
getCallDepth()
Returns the stack depth.
|
QuercusClass |
getCallingClass() |
QuercusClass |
getCallingClass(Value qThis) |
Value |
getCallingClassName() |
QuercusClass |
getClass(int classId)
Returns the class with the given id
|
QuercusClass |
getClass(java.lang.String name)
Finds the class with the given name.
|
Closure |
getClosure()
Returns the current closure scope.
|
Value |
getConfigVar(java.lang.String name)
Returns the configuration value of an init var.
|
ConnectionEntry |
getConnection(java.lang.String driver,
java.lang.String url,
java.lang.String userName,
java.lang.String password,
boolean isReuse)
Returns a connection to the given database.
|
int |
getConnectionStatus()
Returns the connection status
|
Value |
getConstant(int id)
Returns a constant.
|
Value |
getConstant(java.lang.String name)
Returns a constant.
|
Value |
getConstant(java.lang.String name,
boolean isAutoCreateString)
Returns a constant.
|
protected java.lang.String |
getContentType() |
protected ArrayValue |
getCookies() |
static Env |
getCurrent() |
long |
getCurrentTime()
Returns the current time (may be cached).
|
javax.sql.DataSource |
getDatabase()
Returns the configured database.
|
javax.sql.DataSource |
getDataSource(java.lang.String driver,
java.lang.String url)
Returns the configured database.
|
QDate |
getDate() |
Value |
getDeclaredClasses()
Returns the declared classes.
|
protected AbstractFunction[] |
getDefaultFunctionMap() |
StreamContextResource |
getDefaultStreamContext()
Returns the default stream resource.
|
java.util.TimeZone |
getDefaultTimeZone() |
ArrayValue |
getDefinedConstants()
Returns an array of the defined functions.
|
ArrayValue |
getDefinedFunctions() |
java.lang.Object |
getDuplex() |
StringValue |
getEmptyString() |
java.util.Map<StringValue,EnvVar> |
getEnv()
Returns the current environment.
|
EnvVar |
getEnvVar(StringValue name) |
EnvVar |
getEnvVar(StringValue name,
boolean isAutoCreate,
boolean isOutputNotice)
Gets a variable
|
int |
getErrorMask()
Returns the error mask.
|
long |
getExactTime()
Returns the current time (not cached).
|
Callable |
getExceptionHandler()
Gets the exception handler
|
Value |
getExtensionFuncs(java.lang.String name)
Returns true if an extension is loaded.
|
AbstractFunction |
getFunction(int id) |
AbstractFunction |
getFunction(StringValue name) |
AbstractFunction |
getFunction(Value name)
Finds the java reflection method for the function with the given name.
|
Value[] |
getFunctionArgs()
Returns the function args.
|
java.lang.String |
getFunctionLocation()
Returns the current function.
|
java.util.Map<StringValue,EnvVar> |
getGlobalEnv()
Returns the current environment.
|
EnvVar |
getGlobalEnvVar(StringValue name)
Gets a variable
|
EnvVar |
getGlobalEnvVar(StringValue name,
boolean isAutoCreate,
boolean isOutputNotice)
Gets a variable
|
EnvVar |
getGlobalRaw(java.lang.String name)
Returns the raw global lookup.
|
Var |
getGlobalRef(StringValue name)
Gets a global value.
|
protected EnvVar |
getGlobalScriptContextRef(StringValue name) |
protected EnvVar |
getGlobalSpecialRef(StringValue name)
Gets a value.
|
Value |
getGlobalValue(java.lang.String name) |
Value |
getGlobalValue(StringValue name)
Gets a global
|
Var |
getGlobalVar(java.lang.String name)
Gets a value.
|
Var |
getGlobalVar(StringValue name)
Gets a value.
|
Var |
getGlobalVar(StringValue name,
Value value)
Gets a variable
|
QDate |
getGmtDate() |
java.lang.Object |
getGzStream() |
java.lang.String |
getHttpInputEncoding()
Returns the encoding used for input, i.e.
|
ArrayValue |
getIncludedFiles()
Returns all the included files.
|
StringValue |
getIni(java.lang.String name)
Returns an ini value.
|
boolean |
getIniBoolean(java.lang.String name)
Returns an ini value.
|
long |
getIniBytes(java.lang.String name,
long deflt)
Returns an ini value.
|
long |
getIniLong(java.lang.String name)
Returns an ini value as a long.
|
java.util.HashMap<java.lang.String,Value> |
getIniMap(boolean create)
Returns a map of the ini values that have been explicitly set.
|
java.lang.String |
getIniString(java.lang.String name)
Returns an ini value as a string, null for missing or empty string
|
ArrayValue |
getInputCookieArray() |
StringValue |
getInputData()
Returns the input (POST, PUT) data.
|
ArrayValue |
getInputEnvArray() |
ArrayValue |
getInputGetArray() |
ArrayValue |
getInputPostArray() |
ArrayValue |
getInputServerArray() |
static Env |
getInstance() |
JavaClassDef |
getJavaClassDefinition(java.lang.Class<?> type)
Returns an introspected Java class definition.
|
JavaClassDef |
getJavaClassDefinition(java.lang.String className)
Returns an introspected Java class definition.
|
QuercusHttpSession |
getJavaSession()
Returns the Java Http session.
|
Value |
getLastError() |
EnvVar |
getLazyEnvVar(StringValue name) |
java.util.HashSet<java.lang.String> |
getLoadedExtensions()
Returns true if an extension is loaded.
|
QDate |
getLocalDate() |
LocaleInfo |
getLocaleInfo()
Returns the locale info.
|
static Value |
getLocalValue(Value var)
Gets a local value
|
static Value |
getLocalVar(Value var)
Gets a local
|
Location |
getLocation()
Returns the current execution location.
|
protected Location |
getLocationImpl() |
java.util.logging.Logger |
getLogger()
Returns the logger used for syslog.
|
long |
getMicroTime() |
ModuleContext |
getModuleContext()
Returns the owning PHP engine.
|
WriteStream |
getOriginalOut()
Returns the writer.
|
WriteStream |
getOut()
Returns the writer.
|
OutputBuffer |
getOutputBuffer()
Returns the current output buffer.
|
java.lang.String |
getOutputEncoding()
Returns the encoding used for output, null if unicode.semantics is off.
|
Path |
getPwd()
Returns the current directory.
|
QuercusContext |
getQuercus()
Returns the owning PHP engine.
|
protected java.lang.String |
getQueryString() |
java.lang.String |
getRealPath(java.lang.String path)
Returns the real path.
|
Var |
getRef(StringValue name)
Gets a value.
|
Var |
getRef(StringValue name,
boolean isAutoCreate)
Gets a value.
|
QuercusHttpServletRequest |
getRequest()
Returns the request.
|
QuercusHttpServletResponse |
getResponse()
Returns the response.
|
java.lang.String |
getRuntimeEncoding()
Returns the encoding used for runtime conversions, e.g.
|
EncodingReader |
getRuntimeEncodingFactory()
Returns the encoding used for runtime conversions, e.g.
|
java.lang.String |
getScriptEncoding()
Returns the encoding used for scripts.
|
Path |
getSelfDirectory()
Returns the initial directory.
|
Path |
getSelfPath()
Returns the initial directory.
|
QuercusServletContext |
getServletContext()
Returns the ServletContext.
|
SessionArrayValue |
getSession()
Returns the session.
|
SessionCallback |
getSessionCallback()
Gets the session callback.
|
java.lang.String |
getShellPwd() |
static java.lang.String[] |
getSourceLine(Path path,
int sourceLine,
int length)
Returns the source of an error line.
|
int |
getSourceLine(java.lang.String className,
int javaLine) |
java.lang.Object |
getSpecialValue(java.lang.String name)
Gets a special value, a special value is used to store and retrieve module
specific values in the env using a unique name.
|
java.util.ArrayList<java.lang.String> |
getStackTrace() |
java.lang.String |
getStackTraceAsString() |
java.lang.String |
getStackTraceAsString(ArrayValue value,
Location location) |
java.lang.String |
getStackTraceAsString(Location loc) |
java.lang.String |
getStackTraceAsString(java.lang.Throwable e,
Location loc) |
long |
getStartTime() |
Value |
getStaticValue(StringValue name)
Gets a static variable
|
Var |
getStaticVar(StringValue name)
Gets a static variable
|
ProtocolWrapper |
getStreamWrapper(StringValue name) |
java.util.HashMap<StringValue,ProtocolWrapper> |
getStreamWrappers() |
Path |
getTempDirectory()
Returns the temp directory (used by tmpfile()).
|
Value |
getThis()
Returns the 'this' value.
|
Path |
getUploadDirectory()
Returns the upload directory.
|
Value |
getValue(StringValue name)
Gets a value.
|
Value |
getValue(StringValue name,
boolean isAutoCreate,
boolean isOutputNotice)
Gets a value.
|
Var |
getVar(java.lang.String name) |
Var |
getVar(StringValue name)
Gets a value.
|
Var |
getVar(StringValue name,
boolean isAutoCreate,
boolean isOutputNotice)
Gets a value.
|
Var |
getVar(StringValue name,
Value value)
Gets a variable
|
Path |
getWorkDir()
Returns the current directory.
|
Value |
ifNull(Value condition,
Value ifNull,
Value ifNotNull)
Returns ifNull if condition.isNull(), otherwise returns ifNotNull.
|
JavaClassDef |
importJavaClass(java.lang.String className)
Imports a Java class.
|
boolean |
importPhpClass(java.lang.String name)
Imports a PHP class.
|
Value |
include(Path scriptPwd,
StringValue include,
boolean isRequire,
boolean isOnce)
Evaluates an included file.
|
Value |
include(StringValue include)
Evaluates an included file.
|
Value |
includeOnce(Path scriptPwd,
StringValue include,
boolean isRequire)
Evaluates an included file.
|
Value |
includeOnce(StringValue include)
Evaluates an included file.
|
Value |
invalidArgument(java.lang.String name,
java.lang.Object value)
A warning about an invalid argument passed to a function.
|
boolean |
isAllowUrlFopen()
Returns true if allowed to fopen urls.
|
boolean |
isAllowUrlInclude() |
boolean |
isDefined(java.lang.String name)
Returns true if the constant is defined.
|
boolean |
isExtensionLoaded(java.lang.String name)
Returns true if an extension is loaded.
|
boolean |
isGlobalEnv() |
boolean |
isInitializedClass(java.lang.String name)
Returns true if class has already been initialized.
|
boolean |
isStrict()
Returns true for strict mode.
|
boolean |
isUnicodeSemantics()
Returns true if unicode.semantics is on.
|
Path |
lookup(StringValue relPath)
Looks up the path.
|
Path |
lookupInclude(StringValue relPath)
Looks up the path.
|
Path |
lookupPwd(Value relPathV)
Looks up based on the pwd.
|
java.lang.String |
normalizePath(java.lang.CharSequence path) |
Value |
notice(java.lang.String msg)
A notice.
|
Value |
notice(java.lang.String msg,
java.lang.Throwable e)
A notice with an exception.
|
Value |
notice(java.lang.Throwable e)
A warning with an exception.
|
static Value |
nullAsFalse(Value value) |
protected QuercusPage |
pageInit(QuercusPage page)
Initialize the page, loading any functions and classes
|
Value |
parse(java.lang.String msg)
A parse error
|
Value[] |
peekArgs(int depth)
Peeks at the the top call.
|
Expr |
peekCall(int depth)
Peeks at the the top call.
|
Value |
peekCallThis(int depth)
Peeks at the "this" top call.
|
Expr |
popCall()
Pops the top call.
|
void |
popEnv(java.util.Map<StringValue,EnvVar> oldEnv)
Restores the old environment.
|
void |
popFieldGet(Env.OVERLOADING_TYPES type) |
boolean |
popOutputBuffer()
Pops the output buffer
|
void |
popProfile(long nanos) |
void |
print(char v)
Prints a char
|
void |
print(char[] buffer,
int offset,
int length)
Prints a character buffer.
|
void |
print(double v)
Prints a double
|
void |
print(long v)
Prints a long
|
void |
print(java.lang.Object v)
Prints an object
|
void |
print(java.lang.String v)
Prints a string
|
void |
print(Value v)
Prints a value
|
void |
println()
Prints a string
|
void |
println(java.lang.Object v)
Prints and object.
|
void |
println(java.lang.String v)
Prints a string
|
void |
println(Value v)
Prints a string
|
void |
pushCall(Expr call,
Value obj,
Value[] args)
Sets the calling function expression.
|
java.util.Map<StringValue,EnvVar> |
pushEnv(java.util.Map<StringValue,EnvVar> map)
Pushes a new environment.
|
boolean |
pushFieldGet(Env.OVERLOADING_TYPES type,
java.lang.String className,
StringValue fieldName) |
void |
pushOutputBuffer(Callable callback,
int chunkSize,
boolean erase)
Returns the writer.
|
void |
pushProfile(int id) |
void |
putQualifiedImport(java.lang.String javaName)
Adds a Quercus class import.
|
void |
removeAutoloadFunction(Callable fun)
Unregisters an SPL autoload function.
|
void |
removeCleanup(EnvCleanup envCleanup)
remove resource from the list of references that are
cleaned up when finished with this environment.
|
Value |
removeConstant(java.lang.String name)
Removes a constant.
|
java.lang.Object |
removeSpecialValue(java.lang.String name)
Removes a specialValue
|
Value |
require(StringValue include)
Evaluates an included file.
|
Value |
requireOnce(StringValue include)
Evaluates an included file.
|
void |
resetTimeout() |
void |
restoreErrorHandler()
Sets an error handler
|
void |
restoreExceptionHandler()
Restore an exception handler
|
void |
restoreFunctionArgs(Value[] args)
Pushes a new environment.
|
void |
restoreIncludePath()
Restores the default include path.
|
void |
restoreState(SaveState saveState)
Restores to a given state
|
boolean |
restoreStreamWrapper(StringValue name) |
SaveState |
saveState()
Saves the current state
|
void |
sessionWriteClose() |
void |
setArgv(java.lang.String[] args) |
QuercusClass |
setCallingClass(QuercusClass cls) |
Closure |
setClosure(Closure closure)
Sets the current closure scope and returns the old one.
|
void |
setDefaultTimeZone(java.lang.String id) |
void |
setDefaultTimeZone(java.util.TimeZone zone) |
static Var |
setEnvRef(Var oldVar,
Value value)
Sets a reference
|
void |
setErrorHandler(int mask,
Callable fun)
Sets an error handler
|
int |
setErrorMask(int mask)
Sets the error mask.
|
Value |
setExceptionHandler(Callable fun)
Sets an exception handler
|
static Value |
setFieldVar(Value oldValue,
Value value)
Sets a vield variable
|
Value[] |
setFunctionArgs(Value[] args)
Pushes a new environment.
|
Value[] |
setFunctionArgsNoCopy(Value[] args)
Pushes a new environment.
|
Value |
setGlobalValue(java.lang.String name,
Value value)
External calls to set a global value.
|
Value |
setGlobalValue(StringValue name,
Value value)
External calls to set a global value.
|
void |
setGzStream(java.lang.Object obj) |
java.lang.String |
setIncludePath(java.lang.String path)
Sets the include path.
|
StringValue |
setIni(java.lang.String name,
java.lang.String value)
Sets an ini value.
|
StringValue |
setIni(java.lang.String name,
Value value)
Sets an ini value.
|
void |
setInputData(StringValue data)
Sets the post data.
|
static Value |
setLocalVar(Value var,
Value value)
Gets a local
|
Location |
setLocation(Location newLocation) |
void |
setPwd(Path path)
Sets the current directory.
|
Var |
setRef(StringValue name,
Value value)
Sets a value.
|
static Value |
setRef(Value oldValue,
Value value)
Sets a reference
|
Value |
setRuntimeEncoding(java.lang.String encoding)
Sets the encoding used for runtime conversions.
|
void |
setScriptContext(javax.script.ScriptContext context)
Sets the ScriptContext.
|
Value |
setScriptGlobal(java.lang.String name,
java.lang.Object object)
External calls to set a global value.
|
void |
setSelfPath(Path path)
Sets the initial directory.
|
void |
setSession(SessionArrayValue session)
Sets the session.
|
void |
setSessionCallback(SessionCallback callback)
Sets the session callback.
|
java.lang.Object |
setSpecialValue(java.lang.String name,
java.lang.Object value)
Sets a special value, a special value is used to store and retrieve module
specific values in the env using a unique name.
|
Var |
setStaticRef(StringValue name,
Value value)
Gets a static variable
|
Value |
setThis(Value value)
Sets the 'this' value, returning the old value.
|
void |
setTimeLimit(long ms)
Sets the time limit.
|
void |
setValue(java.lang.String name,
Value value) |
Value |
setValue(StringValue name,
Value value)
Sets a value.
|
Var |
setVar(java.lang.String name,
Value value)
Gets a variable
|
Var |
setVar(StringValue name,
Var var)
Sets a variable.
|
void |
start() |
void |
startDuplex(java.lang.Object duplex) |
Value |
strict(java.lang.String msg)
A runtime strict warning.
|
Value |
stub(java.lang.String msg)
A stub notice.
|
Value |
suppress(int errorMask,
Value value)
Handles error suppression.
|
Value |
thisError()
Error when using $this not inside an object context.
|
Value |
thisError(Location location)
Error when using $this not inside an object context.
|
java.lang.String |
toString()
Calls a parent::name method.
|
static Value |
toValue(boolean value)
Converts a boolean to the boolean value
|
static Value |
toValue(long value)
Converts a boolean to the boolean value
|
static Var |
toVar(Value value)
Converts to a variable
|
boolean |
unregisterStreamWrapper(StringValue name) |
Var |
unsetGlobalVar(StringValue name)
Unsets variable
|
Var |
unsetLocalVar(StringValue name)
Unsets variable
|
Var |
unsetVar(StringValue name)
Unsets variable
|
void |
updateFunction(int id,
AbstractFunction fun) |
void |
updateTimeout() |
Value |
warning(java.lang.String msg)
A runtime warning.
|
Value |
warning(java.lang.String msg,
Location location)
A runtime warning.
|
Value |
warning(java.lang.String msg,
Location location,
java.lang.Throwable e)
A warning with an exception.
|
Value |
warning(java.lang.String msg,
java.lang.Throwable e)
A warning with an exception.
|
Value |
warning(java.lang.Throwable e)
A warning with an exception.
|
Value |
warning(java.lang.Throwable e,
Location location)
A warning with an exception.
|
Value |
wrapJava(java.lang.Object obj)
Returns a PHP value for a Java object
|
Value |
wrapJava(java.lang.Object obj,
boolean isNullAsFalse)
Returns a PHP value for a Java object
|
Value |
wrapJava(java.lang.Object obj,
JavaClassDef def)
Returns a PHP value for a Java object
|
Value |
wrapJava(java.lang.Object obj,
JavaClassDef def,
boolean isNullAsFalse)
Returns a PHP value for a Java object
|
void |
write(byte[] buffer,
int offset,
int length)
Prints a byte buffer.
|
public static final int B_ERROR
public static final int B_WARNING
public static final int B_PARSE
public static final int B_NOTICE
public static final int B_CORE_ERROR
public static final int B_CORE_WARNING
public static final int B_COMPILE_ERROR
public static final int B_COMPILE_WARNING
public static final int B_USER_ERROR
public static final int B_USER_WARNING
public static final int B_USER_NOTICE
public static final int B_STRICT
public static final int B_RECOVERABLE_ERROR
public static final int B_DEPRECATED
public static final int B_USER_DEPRECATED
public static final int B_LAST
public static final int E_ERROR
public static final int E_WARNING
public static final int E_PARSE
public static final int E_NOTICE
public static final int E_CORE_ERROR
public static final int E_CORE_WARNING
public static final int E_COMPILE_ERROR
public static final int E_COMPILE_WARNING
public static final int E_USER_ERROR
public static final int E_USER_WARNING
public static final int E_USER_NOTICE
public static final int E_ALL
public static final int E_STRICT
public static final int E_RECOVERABLE_ERROR
public static final int E_DEPRECATED
public static final int E_USER_DEPRECATED
public static final int E_DEFAULT
public static final Value[] EMPTY_VALUE
protected final QuercusContext _quercus
public AbstractFunction[] _fun
public java.util.HashMap<StringValue,AbstractFunction> _anonymousFunMap
public ClassDef[] _classDef
public QuercusClass[] _qClass
public java.util.HashMap<java.lang.String,QuercusClass> _classAliasMap
public Value[] _const
public static final int[] DEFAULT_QUERY_SEPARATOR_MAP
public Env(QuercusContext quercus, QuercusPage page, WriteStream out, QuercusHttpServletRequest request, QuercusHttpServletResponse response)
public Env(QuercusContext quercus)
public static Env getCurrent()
public static Env getInstance()
protected void fillPost(ArrayValue postArray, ArrayValue files, QuercusHttpServletRequest request, boolean isMagicQuotes)
protected AbstractFunction[] getDefaultFunctionMap()
protected QuercusPage pageInit(QuercusPage page)
public Value setScriptGlobal(java.lang.String name, java.lang.Object object)
public boolean isUnicodeSemantics()
public java.lang.String getScriptEncoding()
public java.lang.String getRuntimeEncoding()
public Value setRuntimeEncoding(java.lang.String encoding)
public EncodingReader getRuntimeEncodingFactory() throws java.io.IOException
java.io.IOException
public java.lang.String getHttpInputEncoding()
public java.lang.String getOutputEncoding()
public StringValue createBinaryBuilder()
public StringValue createLargeBinaryBuilder()
public StringValue createBinaryBuilder(int length)
public StringValue createBinaryBuilder(byte[] buffer, int offset, int length)
public StringValue createBinaryBuilder(byte[] buffer)
public StringValue createUnicodeBuilder()
public java.util.TimeZone getDefaultTimeZone()
public QDate getGmtDate()
public QDate getLocalDate()
public QDate getDate()
public void setDefaultTimeZone(java.lang.String id)
public void setDefaultTimeZone(java.util.TimeZone zone)
public QuercusServletContext getServletContext()
public void setScriptContext(javax.script.ScriptContext context)
public ArrayValue getInputGetArray()
public ArrayValue getInputPostArray()
public ArrayValue getInputCookieArray()
public ArrayValue getInputEnvArray()
public ArrayValue getInputServerArray()
public StringValue getInputData()
public void setInputData(StringValue data)
public final boolean isStrict()
public boolean isAllowUrlInclude()
public boolean isAllowUrlFopen()
public int getConnectionStatus()
public void start()
public long getCurrentTime()
public long getExactTime()
public void addCleanup(EnvCleanup envCleanup)
public void addObjectCleanup(ObjectValue objCleanup)
public void removeCleanup(EnvCleanup envCleanup)
resource
- public QuercusContext getQuercus()
public ModuleContext getModuleContext()
public javax.sql.DataSource getDatabase()
protected final javax.sql.DataSource findDatabase(java.lang.String driver, java.lang.String url) throws java.lang.Exception
java.lang.Exception
public ConnectionEntry getConnection(java.lang.String driver, java.lang.String url, java.lang.String userName, java.lang.String password, boolean isReuse) throws java.lang.Exception
java.lang.Exception
public javax.sql.DataSource getDataSource(java.lang.String driver, java.lang.String url) throws java.lang.Exception
java.lang.Exception
public void setTimeLimit(long ms)
public void checkTimeout()
public void updateTimeout()
public void resetTimeout()
public long getStartTime()
public WriteStream getOut()
public WriteStream getOriginalOut()
public final void flush()
public final void print(java.lang.String v)
public final void print(char[] buffer, int offset, int length)
public final void print(char v)
public final void print(long v)
public final void print(double v)
public final void print(java.lang.Object v)
public final void print(Value v)
public final void println()
public final void println(java.lang.String v)
public final void println(Value v)
public final void println(java.lang.Object v)
public final void write(byte[] buffer, int offset, int length)
public OutputBuffer getOutputBuffer()
public void pushOutputBuffer(Callable callback, int chunkSize, boolean erase)
public boolean popOutputBuffer()
public Path getPwd()
public java.lang.String getShellPwd()
public Path getWorkDir()
public void setPwd(Path path)
public Path getSelfPath()
public Path getSelfDirectory()
public void setSelfPath(Path path)
public Path getUploadDirectory()
public java.lang.String getRealPath(java.lang.String path)
public Path getTempDirectory()
public void addRemovePath(Path path)
public QuercusHttpServletRequest getRequest()
public QuercusHttpServletResponse getResponse()
public void setSessionCallback(SessionCallback callback)
public SessionCallback getSessionCallback()
public SessionArrayValue getSession()
public QuercusHttpSession getJavaSession()
public void setSession(SessionArrayValue session)
public java.lang.String generateSessionId()
public SessionArrayValue createSession(java.lang.String sessionId, boolean create)
public void destroySession(java.lang.String sessionId)
public java.util.logging.Logger getLogger()
public Value getConfigVar(java.lang.String name)
public java.util.HashMap<java.lang.String,Value> getIniMap(boolean create)
public StringValue setIni(java.lang.String name, Value value)
public StringValue setIni(java.lang.String name, java.lang.String value)
public StringValue getIni(java.lang.String name)
public boolean getIniBoolean(java.lang.String name)
public long getIniLong(java.lang.String name)
public java.lang.String getIniString(java.lang.String name)
public long getIniBytes(java.lang.String name, long deflt)
public ByteToChar getByteToChar()
public Value getThis()
public Closure getClosure()
public Closure setClosure(Closure closure)
public Value getValue(StringValue name)
public Value getValue(StringValue name, boolean isAutoCreate, boolean isOutputNotice)
public java.lang.Object getSpecialValue(java.lang.String name)
public java.lang.Object setSpecialValue(java.lang.String name, java.lang.Object value)
public Value getGlobalValue(java.lang.String name)
public Value getGlobalValue(StringValue name)
public final Var getVar(StringValue name, Value value)
name
- the variable namevar
- the current value of the variablepublic final Var getGlobalVar(StringValue name, Value value)
name
- the variable namevalue
- the current value of the variablepublic Var getRef(StringValue name)
public Var getRef(StringValue name, boolean isAutoCreate)
public EnvVar getGlobalRaw(java.lang.String name)
public Var getGlobalRef(StringValue name)
public final EnvVar getEnvVar(StringValue name)
public final EnvVar getLazyEnvVar(StringValue name)
public final EnvVar getEnvVar(StringValue name, boolean isAutoCreate, boolean isOutputNotice)
name
- the variable namevar
- the current value of the variablepublic final EnvVar getGlobalEnvVar(StringValue name)
name
- the variable namepublic final EnvVar getGlobalEnvVar(StringValue name, boolean isAutoCreate, boolean isOutputNotice)
name
- the variable nameisAutoCreate
- public java.util.Map<StringValue,EnvVar> pushEnv(java.util.Map<StringValue,EnvVar> map)
public void popEnv(java.util.Map<StringValue,EnvVar> oldEnv)
public java.util.Map<StringValue,EnvVar> getEnv()
public java.util.Map<StringValue,EnvVar> getGlobalEnv()
public boolean isGlobalEnv()
public final StringValue createStaticName()
public final Var getStaticVar(StringValue name)
name
- the variable namepublic final Value getStaticValue(StringValue name)
name
- the variable namepublic final Var setStaticRef(StringValue name, Value value)
name
- the variable namepublic final Var unsetVar(StringValue name)
name
- the variable namepublic final Var setVar(java.lang.String name, Value value)
name
- the variable namevalue
- the current value of the variablepublic final Var unsetLocalVar(StringValue name)
name
- the variable namepublic final Var unsetGlobalVar(StringValue name)
name
- the variable namepublic static final Value getLocalVar(Value var)
var
- the current value of the variablepublic static final Value getLocalValue(Value var)
var
- the current value of the variablepublic static final Value setLocalVar(Value var, Value value)
var
- the current value of the variableprotected ArrayValue createArgv()
protected java.lang.String getQueryString()
protected java.lang.String getContentType()
protected ArrayValue getCookies()
public void setArgv(java.lang.String[] args)
protected EnvVar getGlobalSpecialRef(StringValue name)
protected EnvVar getGlobalScriptContextRef(StringValue name)
protected static java.lang.String decodeValue(java.lang.String s)
public Var getVar(java.lang.String name)
public Var getVar(StringValue name, boolean isAutoCreate, boolean isOutputNotice)
public Var getVar(StringValue name)
public Var getGlobalVar(java.lang.String name)
public Var getGlobalVar(StringValue name)
public void setValue(java.lang.String name, Value value)
public Value setValue(StringValue name, Value value)
public Var setVar(StringValue name, Var var)
public Var setRef(StringValue name, Value value)
public Value setGlobalValue(java.lang.String name, Value value)
public Value setGlobalValue(StringValue name, Value value)
public void pushCall(Expr call, Value obj, Value[] args)
public Expr popCall()
public int getCallDepth()
public Expr peekCall(int depth)
public Value peekCallThis(int depth)
public Value[] peekArgs(int depth)
public RegexpState allocateRegexpState()
public void freeRegexpState(RegexpState state)
public void pushProfile(int id)
public void popProfile(long nanos)
public boolean pushFieldGet(Env.OVERLOADING_TYPES type, java.lang.String className, StringValue fieldName)
public void popFieldGet(Env.OVERLOADING_TYPES type)
public QuercusClass getCallingClass()
public Value getCallingClassName()
public QuercusClass getCallingClass(Value qThis)
public QuercusClass setCallingClass(QuercusClass cls)
public java.lang.String getStackTraceAsString()
public java.lang.String getStackTraceAsString(Location loc)
public java.lang.String getStackTraceAsString(java.lang.Throwable e, Location loc)
public java.lang.String getStackTraceAsString(ArrayValue value, Location location)
public java.util.ArrayList<java.lang.String> getStackTrace()
public final Value[] setFunctionArgsNoCopy(Value[] args)
public final void restoreFunctionArgs(Value[] args)
public final Value[] getFunctionArgs()
public java.lang.Object removeSpecialValue(java.lang.String name)
public Value getConstant(java.lang.String name)
public Value getConstant(java.lang.String name, boolean isAutoCreateString)
public boolean isDefined(java.lang.String name)
public Value getConstant(int id)
public Value removeConstant(java.lang.String name)
public Value addConstant(java.lang.String name, Value value, boolean isCaseInsensitive)
public Value addConstant(StringValue name, Value value, boolean isCaseInsensitive)
public Value addConstant(int id, Value value, boolean isCaseInsensitive)
public ArrayValue getDefinedConstants()
public boolean isExtensionLoaded(java.lang.String name)
public java.util.HashSet<java.lang.String> getLoadedExtensions()
public Value getExtensionFuncs(java.lang.String name)
public StreamContextResource getDefaultStreamContext()
public java.util.HashMap<StringValue,ProtocolWrapper> getStreamWrappers()
public void addStreamWrapper(StringValue name, ProtocolWrapper wrapper)
public ProtocolWrapper getStreamWrapper(StringValue name)
public boolean unregisterStreamWrapper(StringValue name)
public boolean restoreStreamWrapper(StringValue name)
public ArrayValue getDefinedFunctions()
public int findFunctionId(StringValue name)
public AbstractFunction findFunction(StringValue name)
public AbstractFunction getFunction(int id)
public AbstractFunction getFunction(StringValue name)
public void updateFunction(int id, AbstractFunction fun)
public AbstractFunction getFunction(Value name)
name
- the method namepublic Value addFunction(java.lang.String name, AbstractFunction fun)
public Value addFunction(StringValue name, AbstractFunction fun)
public AbstractFunction createAnonymousFunction(java.lang.String args, java.lang.String code) throws java.io.IOException
java.io.IOException
public Value addFunctionFromPage(java.lang.String name, java.lang.String lowerName, AbstractFunction fun)
name
- the function name, must be an intern() stringlowerName
- the function name, must be an intern() stringpublic Value evalCode(StringValue code) throws java.io.IOException
code
- the code to evalutejava.io.IOException
public void execute() throws java.io.IOException
java.io.IOException
public Value executeTop()
protected Value executePage(QuercusPage page)
protected Value executePageTop(QuercusPage page)
public Value call(StringValue name)
name
- the function namepublic Value call(StringValue name, Value a0)
name
- the function namea0
- the first argumentpublic Value call(StringValue name, Value a0, Value a1)
name
- the function namea0
- the first argumenta1
- the second argumentpublic Value call(StringValue name, Value a0, Value a1, Value a2)
name
- the function namea0
- the first argumenta1
- the second argumenta2
- the third argumentpublic Value call(StringValue name, Value a0, Value a1, Value a2, Value a3)
name
- the function namea0
- the first argumenta1
- the second argumenta2
- the third argumenta3
- the fourth argumentpublic Value call(StringValue name, Value a0, Value a1, Value a2, Value a3, Value a4)
name
- the function namea0
- the first argumenta1
- the second argumenta2
- the third argumenta3
- the fourth argumenta4
- the fifth argumentpublic Value call(StringValue name, Value[] args)
name
- the function nameargs
- the argumentspublic Value callRef(StringValue name)
name
- the function namepublic Value callRef(StringValue name, Value a0)
name
- the function namea0
- the first argumentpublic Value callRef(StringValue name, Value a0, Value a1)
name
- the function namea0
- the first argumenta1
- the second argumentpublic Value callRef(StringValue name, Value a0, Value a1, Value a2)
name
- the function namea0
- the first argumenta1
- the second argumenta2
- the third argumentpublic Value callRef(StringValue name, Value a0, Value a1, Value a2, Value a3)
name
- the function namea0
- the first argumenta1
- the second argumenta2
- the third argumenta3
- the fourth argumentpublic Value callRef(StringValue name, Value a0, Value a1, Value a2, Value a3, Value a4)
name
- the function namea0
- the first argumenta1
- the second argumenta2
- the third argumenta3
- the fourth argumenta4
- the fifth argumentpublic Value callRef(StringValue name, Value[] args)
name
- the function nameargs
- the argumentspublic void addClassDef(java.lang.String name, ClassDef cl)
public ClassDef findClassDef(java.lang.String name)
public SaveState saveState()
public void restoreState(SaveState saveState)
public ObjectValue createObject()
public ObjectValue createIncompleteObject(java.lang.String name)
public StringValue getEmptyString()
public StringValue createStringBuilder()
public StringValue createString(byte[] buffer, int offset, int length)
public StringValue createString(char[] buffer, int length)
public StringValue createString(char[] buffer, int offset, int length)
public StringValue createString(long value)
public StringValue createString(java.lang.String s)
public StringValue createString(char ch)
public StringValue createBinaryString(TempBuffer head)
public Value createException(java.lang.String exceptionClass, java.lang.String message)
public Value createException(java.lang.String exceptionClass, java.lang.String... args)
public Value createException(java.lang.Throwable e)
public int generateObjectId()
public JavaClassDef getJavaClassDefinition(java.lang.String className)
public JavaClassDef getJavaClassDefinition(java.lang.Class<?> type)
public JavaClassDef importJavaClass(java.lang.String className)
className
- name of class to importpublic void putQualifiedImport(java.lang.String javaName)
javaName
- fully qualified class import stringpublic void addWildcardImport(java.lang.String name)
name
- wildcard class import string
minus '*' at the end (i.e. java.util.)public Value wrapJava(java.lang.Object obj, boolean isNullAsFalse)
isNullAsFalse
- what to return if obj is null, if true return
BooleanValue.FALSE
otherwise return {@link NullValue.NULL)public Value wrapJava(java.lang.Object obj, JavaClassDef def, boolean isNullAsFalse)
isNullAsFalse
- what to return if obj is null, if true return
BooleanValue.FALSE
otherwise return {@link NullValue.NULL)public Value wrapJava(java.lang.Object obj)
public Value wrapJava(java.lang.Object obj, JavaClassDef def)
isNullAsFalse
- what to return if obj is null, if true return
BooleanValue.FALSE
otherwise return {@link NullValue.NULL)public void addClassAlias(java.lang.String alias, QuercusClass cls)
public QuercusClass findClassByAlias(java.lang.String alias)
public QuercusClass findClass(java.lang.String name)
name
- the class namepublic QuercusClass findClass(java.lang.String name, boolean useAutoload, boolean useImport, boolean useAliasMap)
name
- the class nameuseAutoload
- use autoload to locate the class if necessarypublic QuercusClass findClass(int id)
name
- the class namepublic QuercusClass findClass(int id, boolean useAutoload, boolean useImport, boolean useAliasMap)
name
- the class nameuseAutoload
- use autoload to locate the class if necessarypublic QuercusClass findClass(java.lang.String name, int id, boolean useAutoload, boolean useImport, boolean useAliasMap)
name
- the class nameuseAutoload
- use autoload to locate the class if necessarypublic QuercusClass getClass(int classId)
public void addClass(ClassDef def, int classId, int parentId)
def
- the class definitionclassId
- the identifier for the class nameparentId
- the identifier for the parent class namepublic void addClass(java.lang.String name, ClassDef def)
public void addAutoloadFunction(Callable fun, boolean isPrepend)
public void removeAutoloadFunction(Callable fun)
public java.util.ArrayList<Callable> getAutoloadFunctions()
public boolean importPhpClass(java.lang.String name)
name
- of the PHP classpublic Value getDeclaredClasses()
public QuercusClass findAbstractClass(java.lang.String name)
name
- the class namepublic QuercusClass getClass(java.lang.String name)
name
- the class nameQuercusRuntimeException
- if the class is not foundpublic void clearClassCache()
public boolean isInitializedClass(java.lang.String name)
public void addInitializedClass(java.lang.String name)
public AbstractFunction findFunction(java.lang.String className, java.lang.String methodName)
className
- the class namemethodName
- the method namepublic Value requireOnce(StringValue include)
public Value require(StringValue include)
public Value include(StringValue include)
public Value includeOnce(StringValue include)
public Value includeOnce(Path scriptPwd, StringValue include, boolean isRequire)
public Value include(Path scriptPwd, StringValue include, boolean isRequire, boolean isOnce)
public Path lookup(StringValue relPath)
public Path lookupInclude(StringValue relPath)
public java.lang.String setIncludePath(java.lang.String path)
public java.lang.String normalizePath(java.lang.CharSequence path)
public void restoreIncludePath()
public ArrayValue getIncludedFiles()
public Value exit()
public Value die(java.lang.String msg)
public Value die()
public static long first(long value, Value a1)
public static double first(double value, Value a1)
public static long first(long value, double a1)
public static long first(long value, long a1)
public static double first(double value, double a1)
public static Value first(Value value, Value a1, Value a2, Value a3, Value a4)
public static Value first(Value value, Value a1, Value a2, Value a3, Value a4, Value a5)
public void checkTypeHint(Value value, java.lang.String type, java.lang.String argName, java.lang.String functionName)
public Value thisError(Location location)
public Value thisError()
public Value error(java.lang.String msg)
public Value error(java.lang.String msg, java.lang.Throwable e)
public Value error(java.lang.Throwable e)
public QuercusRuntimeException createErrorException(java.lang.String msg) throws QuercusRuntimeException
QuercusRuntimeException
public QuercusRuntimeException createErrorException(Location location, java.lang.String msg) throws QuercusRuntimeException
QuercusRuntimeException
public QuercusRuntimeException createErrorException(java.lang.Throwable e) throws QuercusRuntimeException
QuercusRuntimeException
public Value warning(java.lang.String msg)
public Value warning(java.lang.String msg, java.lang.Throwable e)
public Value warning(java.lang.String msg, Location location, java.lang.Throwable e)
public Value warning(java.lang.Throwable e)
public Value strict(java.lang.String msg)
public Value invalidArgument(java.lang.String name, java.lang.Object value)
public Value deprecatedArgument(java.lang.String name)
public Value notice(java.lang.String msg)
public Value notice(java.lang.Throwable e)
public Value notice(java.lang.String msg, java.lang.Throwable e)
public Value stub(java.lang.String msg)
public Value parse(java.lang.String msg) throws java.lang.Exception
java.lang.Exception
public Value compileError(java.lang.String msg)
public Value compileWarning(java.lang.String msg)
public int getErrorMask()
public int setErrorMask(int mask)
public void setErrorHandler(int mask, Callable fun)
public void restoreErrorHandler()
public Callable getExceptionHandler()
public void restoreExceptionHandler()
public Value error(int code, java.lang.String msg)
public Value getLastError()
public static java.lang.String[] getSourceLine(Path path, int sourceLine, int length)
protected final Location getLocationImpl()
public Location getLocation()
public int getSourceLine(java.lang.String className, int javaLine)
public java.lang.String getFunctionLocation()
public static Value toValue(boolean value)
public static Value toValue(long value)
public static Value comma(Value a0, Value a1, Value a2, Value a3, Value a4)
public static long comma(Value a0, long a1)
public static long comma(long a0, long a1)
public static double comma(Value a0, double a1)
public static double comma(double a0, double a1)
public java.lang.String toString()
toString
in class java.lang.Object
public Value ifNull(Value condition, Value ifNull, Value ifNotNull)
public LocaleInfo getLocaleInfo()
public long getMicroTime()
public void setGzStream(java.lang.Object obj)
public java.lang.Object getGzStream()
public void startDuplex(java.lang.Object duplex)
public void closeDuplex()
public java.lang.Object getDuplex()
public void close()
public void sessionWriteClose()
public java.lang.String dbgId()