Servertec isInstance( )
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Reference Manual
Conventions
Scriptlets
Data Types
Constants
Variables
Procedures
Operators
Statements
Objects
Array
Config
Context
Cookie
Date
Enumeration
File
FileDescriptor
Hashtable
Internet
IO
JDBC
Number
Object
defined( )
equals( )
forName( )
getClass( )
getName( )
hashCode( )
instanceOf( )
isDate( )
isDouble( )
isInstance( )
isInteger( )
isLong( )
isNull( )
isObject( )
isString( )
newInstance( )
Object( )
toString( )
undefine( )

Properties
Random
Request
RequestDispatcher
Response
Session
SqlTypes
Stack
StreamTokenizer
String
StringBuffer
StringTokenizer
System
Vector

Wrappers
Servlet
Server Pages
Preprocessor
Executable
Samples
Legal
Contact Us

 

Returns whether a specified object is an instance of the given class name.

Syntax

    isInstance( object , classname )
    object.isInstance( classname )

Parameters

    object the object to check.
    classname the name of the class to check against.

Returns

    boolean true if object is an instance of classname.
    false if object is not an instance of classname.

Example

    if instanceOf( obj1, "java.io.File" ) then
        println( "is instance" )
    end
    
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:56:08 EDT 2005