new Class(config)
- Source:
Represent a Class object :
- Created by the parser and the ClassLoader's hook
- Updated by the reference solver and the ClassLoader's hook
Parameters:
Name | Type | Description |
---|---|---|
config |
object | Optional, a hashmap with param/value to initiliaze |
Methods
addInheritedMethod()
- Source:
To add inherited method which are not overrided
getClInit() → {Method}
- Source:
To get
Returns:
- Type
- Method
getField(pattern)
- Source:
To find a class's field by usins a search pattern
Parameters:
Name | Type | Description |
---|---|---|
pattern |
String |
getInterfaces()
- Source:
To get the implement interface
getMethod(pattern)
- Source:
To find a class's method by usins a search pattern
Parameters:
Name | Type | Description |
---|---|---|
pattern |
String |
getPackage()
- Source:
To get the class package
getStaticFields() → {Array.<Field>}
- Source:
To get all static fields declared or inherited
Returns:
An array of fields
- Type
- Array.<Field>
hasField(name) → {Boolean}
- Source:
To check if a field is defined whith the given name
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of a field |
Returns:
TRUE if the class contains a definition, else FALSE
- Type
- Boolean
hasMethod(hash) → {Boolean}
- Source:
To check if a method is defined whith the given hashcode
Parameters:
Name | Type | Description |
---|---|---|
hash |
String | The hashcode of the method |
Returns:
TRUE if the class contains a definition, else FALSE
- Type
- Boolean
initFromFQCN(fqcn)
- Source:
To find a class's method by usins a search pattern
Parameters:
Name | Type | Description |
---|---|---|
fqcn |
String | A raw Full-Qualified Class Name |
setPackage(pkg)
- Source:
To set the class package
Parameters:
Name | Type | Description |
---|---|---|
pkg |
Package | The package containing this class |