|
|||||
|
|||||
Useful Things |
MVEL 2.0 Language FAQ
Why doesn't the .class reference work?MVEL does not have a special .class identifier to refer to type literals like Java. There are no class literals per se. Instead you refer to a class reference simply by it's name. For example, if a method accepts type In fact, MVEL treats .class as a regular bean property. So by writing The principle reason for this, is that MVEL has a dynamic type system which treats types as regular variables, rather than qualified type-literals like in Java. And as such, MVEL allows for class types to be referenced as ordinary variables unlike Java, allowing for type-aliasing. Why can't I write object.class.name?This is a limitation which may be addressed in a future version of MVEL, but bean properties are not supported against This limitation is completely limited to |
||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||