EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificações Página 221

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 220
CHAPTER 8: ExtendScript Tools and Features ExtendScript reflection interface 221
ExtendScript reflection interface
ExtendScript provides a reflection interface that allows you to find out everything about an object,
including its name, a description, the expected data type for properties, the arguments and return value
for methods, and any default values or limitations to the input values.
Reflection object
Every object has a reflect property that returns a reflection object that reports the contents of the
object. You can, for example, show the values of all the properties of an object with code like this:
var f = new File ("myfile");
var props = f.reflect.properties;
for (var i = 0; i < props.length; i++) {
$.writeln(’this property ’ + props[i].name + ’ is ’ + f[props[i].name]);
}
Reflection object properties
All properties are read only.
Reflection object functions
description
String Short text describing the reflected object, or undefined if no
description is available.
help
String Longer text describing the reflected object more completely, or
undefined if no description is available.
methods
Array of
ReflectionInfo
An Array of ReflectionInfo objects containing all methods of the
reflected object, defined in the class or in the specific instance.
name
String The class name of the reflected object.
properties
Array of
ReflectionInfo
An Array of ReflectionInfo objects containing all properties of the
reflected object, defined in the class or in the specific instance. For
objects with dynamic properties (defined at runtime) the list contains
only those dynamic properties that have already been accessed by
the script. For example, in an object wrapping an HTML tag, the
names of the HTML attributes are determined at run time.
find()
reflectionObj.find (name)
name
The property for which to retrieve information.
Returns the ReflectionInfo object
for the named property of the reflected object, or null if no such
property exists.
Use this method to get information about dynamic properties that have not yet been accessed, but
that are known to exist.
Vista de página 220
1 2 ... 216 217 218 219 220 221 222 223 224 225 226 ... 303 304

Comentários a estes Manuais

Sem comentários