Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

extutils::xsbuilder::parsesource(3pm) [debian man page]

XSBuilder::ParseSource(3pm)				User Contributed Perl Documentation			       XSBuilder::ParseSource(3pm)

NAME
ExtUtils::XSBuilder::ParseSource - parse C source files DESCRIPTION For more information, see ExtUtils::XSBuilder extent_parser (o) Allows the user to call the Extent or Replace method of the parser to add new syntax rules. This is mainly useful to include expansions for preprocessor macros. preprocess (o) Allows the user to preprocess the source before it is given to the parser. You may modify the source, which is given as first argument in place. include_dirs (o) Returns a reference to the list of directories that should be searched for include files which contain the functions, structures, etc. to be extracted. Default: '.' include_paths (o) Returns a reference to a list of directories that are given as include directories to the C compiler. This is mainly used to strip these directories from filenames to convert absolute paths to relative paths. Default: empty list ("[]") unwanted_includes (o) Returns a reference to a list of include files that should not be processed. Default: empty list ("[]") sort_includes (o, include_list) Passed an array ref of include files, it allows the user to define the sort order, so includes are processed correctly. Default: return the passed array reference. find_includes (o) Returns a list of include files to be processed. Default: search directories given by "include_dirs" for all files and build a list of include files. All files starting with a word matched by "unwanted_includes" are not included in the list. handle_define (o) Passed a hash ref with the definition of a define, may modify it. Return false to discard it, return true to keep it. Default: 1 handle_enum (o) Passed a hash ref with the definition of a enum value, may modify it. Return false to discard it, return true to keep it. Default: 1 handle_struct (o) Passed a hash ref with the definition of a struct, may modify it. Return false to discard it, return true to keep it. Default: 1 handle_function (o) Passed a hash ref with the definition of a function, may modify it. Return false to discard it, return true to keep it. Default: 1 handle_callback (o) Passed a hash ref with the definition of a callback, may modify it. Return false to discard it, return true to keep it. Default: 1 package (o) Return package name for tables Default: 'MY' targetdir (o) Return name of target directory where to write tables Default: './xsbuilder/tables' run Call this class method to parse your source. Before you can do so you must provide a class that overrides the defaults in ExtUtils::XSBuilder::ParseSource. After that you scan the source files with MyClass -> run ; perl v5.10.1 2005-08-22 XSBuilder::ParseSource(3pm)

Check Out this Related Man Page

HTML::Widget::Element(3pm)				User Contributed Perl Documentation				HTML::Widget::Element(3pm)

NAME
HTML::Widget::Element - Element Base Class SYNOPSIS
my $e = $widget->element( $type, $name, {disabled => 'disabled'} ); $e->name('bar'); $e->class('foo'); DESCRIPTION
Element Base Class. METHODS
new attributes attrs Arguments: %attributes Arguments: \%attributes Return Value: $element Arguments: none Return Value: \%attributes Accepts either a list of key/value pairs, or a hash-ref. $e->attributes( $key => $value ); $e->attributes( { $key => $value } ); Returns the $element object, to allow method chaining. As of v1.10, passing a hash-ref no longer deletes current attributes, instead the attributes are added to the current attributes hash. This means the attributes hash-ref can no longer be emptied using "$e->attributes( { } );". Instead, you may use "%{ $e->attributes } = ();". As a special case, if no arguments are passed, the return value is a hash-ref of attributes instead of the object reference. This provides backwards compatibility to support: $e->attributes->{key} = $value; "attrs" is an alias for "attributes". container Arguments: \%attributes Return Value: $container Creates a new $container_class. Defaults to HTML::Widget::Container. id Arguments: $widget Return Value: $id Creates a element id. init Arguments: $widget Called once when process() gets called for the first time. mk_error Arguments: $widget, @errors Return Value: $error Creates a new HTML::Widget::Error. mk_input Arguments: $widget, \%attributes, @errors Return Value: $input_tag Creates a new input tag. mk_tag Arguments: $widget, $tagtype, \%attributes, @errors Return Value: $element_tag Creates a new tag. mk_label Arguments: $widget, $name, $comment, @errors Return Value: $label_tag Creates a new label tag. name Arguments: $name Return Value: $name Contains the element name. passive Arguments: $bool Return Value: $bool Defines if element gets automatically rendered. prepare Arguments: $widget Called whenever "$widget->process" gets called, before "$element->process". process Arguments: \%params, @uploads Return Value: @errors Called whenever "$widget->process" is called. Returns an arrayref of HTML::Widget::Error objects. containerize Arguments: $widget, $value, @errors Return Value: $container_tag Containerize the element, label and error for later rendering. Uses HTML::Widget::Container by default, but this can be over-ridden on a class or instance basis via "container_class". container_class Arguments: $class Return Value: $class Contains the class to use for contain the element which then get rendered. Defaults to HTML::Widget::Container. "container_class" can be set at a class or instance level: HTML::Widget::Element->container_class('My::Container'); # Override default to custom class HTML::Widget::Element::Password->container_class(undef); # Passwords use the default class $w->element('Textfield')->name('foo')->container_class->('My::Other::Container'); # This element only will use My::Other::Container to render find_elements Return Value: @elements For non-block-container elements, simply returns a one-element list containing this element. new allow_filter Used by "$widget->filter_all". If false, the filter won't be added. Default true. allow_constraint Used by "$widget->constraint_all". If false, the filter won't be added. Default true. AUTHOR
Sebastian Riedel, "sri@oook.de" LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2011-01-19 HTML::Widget::Element(3pm)
Man Page