forked from HaxeFoundation/haxe
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ce1317
commit f0f7e95
Showing
8 changed files
with
140 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package php7.reflection; | ||
|
||
|
||
@:native('ReflectionFunctionAbstract') | ||
extern class ReflectionFunctionAbstract implements Reflector { | ||
|
||
public var name : String; | ||
|
||
public function getClosureScopeClass() : ReflectionClass; | ||
public function getClosureThis() : Dynamic; | ||
public function getDocComment() : String; | ||
public function getEndLine() : Int; | ||
// public function getExtension() : ReflectionExtension; | ||
public function getExtensionName() : String; | ||
public function getFileName() : String; | ||
public function getName() : String; | ||
public function getNamespaceName() : String; | ||
public function getNumberOfParameters() : Int; | ||
public function getNumberOfRequiredParameters() : Int; | ||
// public function getParameters() : NativeIndexedArray<ReflectionParameter>; | ||
// public function getReturnType() : ReflectionType; | ||
public function getShortName() : String; | ||
public function getStartLine() : Int; | ||
public function getStaticVariables() : NativeAssocArray<Dynamic>; | ||
public function hasReturnType() : Bool; | ||
public function inNamespace() : Bool; | ||
public function isClosure() : Bool; | ||
public function isDeprecated() : Bool; | ||
public function isGenerator() : Bool; | ||
public function isInternal() : Bool; | ||
public function isUserDefined() : Bool; | ||
public function isVariadic() : Bool; | ||
public function returnsReference() : Bool; | ||
public function __toString() : String; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package php7.reflection; | ||
|
||
import haxe.Constraints; | ||
import haxe.extern.Rest; | ||
|
||
@:native('ReflectionMethod') | ||
extern class ReflectionMethod extends ReflectionFunctionAbstract { | ||
// const integer IS_STATIC = 1 ; | ||
// const integer IS_PUBLIC = 256 ; | ||
// const integer IS_PROTECTED = 512 ; | ||
// const integer IS_PRIVATE = 1024 ; | ||
// const integer IS_ABSTRACT = 2 ; | ||
// const integer IS_FINAL = 4 ; | ||
|
||
// public var class : String; | ||
|
||
public static function export( className:String, name:String, ?returnValue:Bool) : String; | ||
|
||
public function new( cls:Dynamic, name:String ) : Void; | ||
public function getClosure( object:{} ) : Function; | ||
public function getDeclaringClass() : ReflectionClass; | ||
public function getModifiers() : Int; | ||
public function getPrototype() : ReflectionMethod; | ||
public function invoke( object:{}, args:Rest<Dynamic> ) : Dynamic; | ||
public function invokeArgs( object:{}, args:NativeIndexedArray<Dynamic> ) : Dynamic; | ||
public function isAbstract() : Bool; | ||
public function isConstructor() : Bool; | ||
public function isDestructor() : Bool; | ||
public function isFinal() : Bool; | ||
public function isPrivate() : Bool; | ||
public function isProtected() : Bool; | ||
public function isPublic() : Bool; | ||
public function isStatic() : Bool; | ||
public function setAccessible( accessible:Bool ) : Void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package php7.reflection; | ||
|
||
|
||
@:native('ReflectionProperty') | ||
extern class ReflectionProperty implements Reflector { | ||
|
||
// const integer IS_STATIC = 1 ; | ||
// const integer IS_PUBLIC = 256 ; | ||
// const integer IS_PROTECTED = 512 ; | ||
// const integer IS_PRIVATE = 1024 ; | ||
|
||
public var name : String; | ||
|
||
public static function export( className:Dynamic, name:String, ?returnValue:Bool ) : String; | ||
|
||
public function new ( cls:Dynamic, name:String ) : Void; | ||
public function getDeclaringClass() : ReflectionClass; | ||
public function getDocComment() : String; | ||
public function getModifiers() : Int; | ||
public function getName() : String; | ||
public function getValue( ?object:{} ) : Dynamic; | ||
public function isPrivate() : Bool; | ||
public function isProtected() : Bool; | ||
public function isPublic() : Bool; | ||
public function isStatic() : Bool; | ||
public function setAccessible ( accessible:Bool ) : Void; | ||
public function setValue( object:{}, value:Dynamic ) : Void; | ||
public function __toString() : String; | ||
} |