File:  [parser3project] / parser3 / tests / 352.html
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Sep 19 22:46:50 2016 UTC (9 years, 11 months ago) by moko
Branches: MAIN
CVS tags: HEAD
no more exception for ^reflection:method[class;no-such-method] (related to feature #1087)

@main[]

$v[M]

$s[ ]
$o[^O::create[]]

^try-catch{ ^reflection:method{code} }
^try-catch{ ^reflection:method[$o] }

^try-catch{ ^reflection:method[$test]{code} }
^try-catch{ ^reflection:method[$test;$s] }
^try-catch{ ^reflection:method[$string:length] }

$no[^reflection:method[$s;no-such-method]] $no.CLASS_NAME

^try-catch{ ^reflection:method[$s;length]{code} }
^try-catch{ ^reflection:method[$s;length;$self] }
^try-catch{ ^reflection:method[$MAIN:CLASS;test;$s] }

^try-catch{ $m[^reflection:method[$string:CLASS;length]] ^m[] }

$m[^reflection:method[$test;$o]]
^m[]
$m[^reflection:method[$o.test;$o]]
^m[]
$m[^reflection:method[$o.test]]
^m[]

$m[^reflection:method[$s;length]]
^m[]

@test[]
MAIN [$v] $self.CLASS_NAME ^if(^reflection:dynamical[]){dynamic}{static}


@CLASS
O

@create[]
$v[O]

@test[]
CLASS [$v] $self.CLASS_NAME ^if(^reflection:dynamical[]){dynamic}{static}


E-mail: