JavaClass¶
-
php\lang\JavaClass
final class
Methods
__construct
($className)¶throws php\lang\JavaException if not found class
Parameters:
- $className – string - - full name of java class
isStatic
()¶
Returns: bool
isFinal
()¶
Returns: bool
isAbstract
()¶
Returns: bool
isInterface
()¶
Returns: bool
isEnum
()¶
Returns: bool
isAnnotation
()¶
Returns: bool
isArray
()¶
Returns: bool
isPrimitive
()¶
Returns: bool
isAnonymousClass
()¶
Returns: bool
isMemberClass
()¶
Returns: bool
getName
()¶
Returns: string
getSimpleName
()¶
Returns: string
getCanonicalName
()¶
Returns: string
getSuperClass
()¶
Returns: php\lang\JavaClass, null
getModifiers
()¶
Returns: int
isAnnotationPresent
($annotationClassName)¶throws php\lang\JavaException if class not found
Parameters:
- $annotationClassName – string
Returns: bool
getInterfaces
()¶
Returns: php\lang\JavaClass[]
getDeclaredMethod
($name, $types)¶throws php\lang\JavaException
Parameters:
- $name – string
- $types – array
Returns:
getDeclaredMethods
()¶
Returns: php\lang\JavaMethod[]
getDeclaredField
($name)¶throws php\lang\JavaException
Parameters:
- $name –
Returns:
getDeclaredFields
()¶
Returns: php\lang\JavaField[]
newInstance
()¶throws php\lang\JavaException
Returns: php\lang\JavaObject
newInstanceArgs
($types, $arguments)¶throws php\lang\JavaException
Parameters:
- $types – array
- $arguments – array
Returns:
isAssignableFrom
($class)¶
Parameters:
- $class – php\lang\JavaClass
Returns: bool
isSubClass
($className)¶throws php\lang\JavaException
Parameters:
- $className – string
Returns: bool
getEnumConstants
()¶
Returns: php\lang\JavaObject[]
getResource
($name)¶
Parameters:
- $name – string
Returns: string, null - filename
- static
primitive
($name)¶
Parameters:
- $name – string - - [int, byte, short, char, float, double, boolean, long]