input
stringlengths
10
828
output
stringlengths
5
107
public void set loader loader ref loader role role loader get role if common role none equals role throw new build exception nested element loader can not be none delegate set loader role role
sets the loader attribute
public void report attribute string name string value current cl attributes add new descriptor attr name value
reports a single attribute
public boolean handle classpath entry class loader cl url entry url if duplicate entry requires check return true if get utils contains entry this cl entry url return true level log level duplicate entry get duplicate log level if log level null log log log level duplicate classpath entry entry url return duplicate entry is omit duplicate
handles a classpath entry
public string end classloader role name string prefix dec prefix prefix prefix classloader return prefix 0 end of get role name
formats the end of the classloader section
public string end child loaders int num string prefix dec prefix prefix return prefix 0 childs
formats the end of the childs section
public void set parameters loader parameters desc delegate set parameters desc
sets the parameters attribute
public void report child role name
reports a single child
public void set classpath collection url classpath if this classpath null this classpath classpath else this classpath add all classpath
specify which path will be used
public void add path path path check children allowed elements add path set checked false
adds a nested path
public void set parent loader loader ref loader delegate set parent loader loader get role
sets the parent loader attribute
public boolean is supported action action return true
checks whether the adapter supports an action
public void report class class s current cl clazz s
reports the classloaders class
public string end entries int num string prefix dec prefix prefix prefix entries return null
formats the end of the entries section
public string end classloader role name string prefix dec prefix prefix return prefix 0 classloader
formats the end of the classloader section
public void report entry string type string entry current cl entries add new descriptor entry type entry
reports a single entry
public void set loader role role loader this loader role loader
sets the loader attribute
public string end errors int num string prefix dec prefix prefix prefix errors return null
formats the end of the errors section
public string end entries int num string prefix dec prefix prefix return prefix 0 entries
formats the end of the entries section
public void add reference reference id check children allowed elements add id set checked false
adds some reference that might be a fileset afilelist
public void report entry url url report entry url url to string
reports a single url entry
public void set parameters parameters desc parameters desc
sets the parameters attribute
public void set reset boolean on off delegate set reset on off
reset the classloader if it already exists
public void report error string msg errors add msg
reports an error
public void set parent loader class loader loader this parent loader loader
sets the parent loader attribute
public string end errors int num string prefix dec prefix prefix return prefix 0 errors
formats the end of the errors section
public void set parent loader role loader this parent loader role loader
sets the parent loader attribute
public void report exlicite parent role handle current cl parent handle current cl explicite parent true
reports an explicit parent classloader
public string end packages int num string prefix dec prefix prefix prefix packages return null
formats the end of the packages section
public void set super loader loader ref loader delegate set super loader loader get role
sets the super loader attribute
public void report implicite parent role handle current cl parent handle current cl explicite parent false
reports an implicit parent classloader
public string end packages int num string prefix dec prefix prefix return prefix 0 packages
formats the end of the packages section
public void set reset boolean on off this reset on off
reset the classloader if it already exists
public void report package string pkg current cl packages add pkg
reports a single defined package
public string end report string prefix dec prefix prefix prefix report return prefix 0 end of classloaderreport
formats the end of the report
public void set super loader class loader loader this super loader loader
sets the super loader attribute
public void report role role handle current cl roles add handle
reports a single role
public string end report string prefix dec prefix prefix return prefix 0 classloaderreport
formats the end of the report
public void set super loader role loader this super loader role loader
sets the super loader attribute
private void add unless present array list v set set file dir string s for int j 0 j s length j try string absolute path simple urlutils get urlutils resolve s j dir add unless present v set absolute path catch malformed urlexception murlex maybe a non file url add unless present v set s j
adds absolute path names of listed files in the given directory
public string end roles int num string prefix dec prefix prefix prefix roles return null
formats the end of the roles section
public void report unassigned role role handle unassigned add handle
reports a single unassigned role
public string end roles int num string prefix dec prefix prefix return prefix 0 roles
formats the end of the roles section
public string end unassigned roles int num string prefix dec prefix prefix prefix unassigned roles return null
formats the end of the unassigned roles section
public void add urlpath urlpath path check children allowed elements add path set checked false
adds a nested url path
public string format attribute string name string value string prefix return prefix 0 name value
formats a single attribute
public string end unassigned roles int num string prefix dec prefix prefix return prefix 0 unassigned roles
formats the end of the unassigned roles section
public string format child role name string prefix return prefix 0 get role name
formats a single child entry
public void append urlpath other if other null return for iterator i other elements iterator i has next elements add i next set checked false
append the contents of the other path instance to this
public string format attribute string name string value string prefix return prefix 0 attribute name name value value
formats a single attribute
public string format child role name string prefix return prefix 0 child type name get type name name get name null name name get name
formats a single child entry
public void begin attributes int num report fmt begin attributes num prefix
indicates start of attributes section
public string format class class cl string prefix return prefix 0 class cl get name
formats the class of a classloader
public object clone try urlpath p urlpath super clone p elements array list elements clone return p catch clone not supported exception e throw new build exception e
return a path that holds the same elements as this instance
public void begin child loaders int num report fmt begin child loaders num prefix
indicates start of child section
public void begin classloader role name report fmt begin classloader name prefix
indicates start of classloader reporting
public string format class class cl string prefix return prefix 0 class name cl get name
formats the class of a classloader
public void begin entries int num report fmt begin entries num prefix
indicates start of entries section
public string format entry string type string entry string prefix return prefix 0 type entry
formats a single entry
public void begin errors int num report fmt begin errors num prefix
indicates start of error section
public urlpath concat system classpath return concat system classpath last
concatenates the system class path in the order specified by
public void begin packages int num report fmt begin packages num prefix
indicates start of packages section
public string format entry string type string entry string prefix return prefix 0 entry type entry
formats a single entry
public void begin report report fmt begin report prefix
indicates start of report
public string format entry url url string prefix return format entry url string value of url prefix
formats a single url entry
public void begin roles int num report fmt begin roles num prefix
indicates start of role section
public void begin unassigned roles int num report fmt begin unassigned roles num prefix
indicates start of unassigned roles section
public void end attributes int num report fmt end attributes num prefix
indicates end of attributes section
public string format entry url url string prefix return prefix 0 entry url url
formats a single url entry
public void end child loaders int num report fmt end child loaders num prefix
indicates end of child section
public string format error string msg string prefix return prefix 0 msg
formats a single error message
public void end classloader role name report fmt end classloader name prefix
indicates end of classloader reporting
public void end entries int num report fmt end entries num prefix
indicates end of entries section
public string format error string msg string prefix return prefix 0 error msg msg
formats a single error message
public void end errors int num report fmt end errors num prefix
indicates end of errors section
public path create path check children allowed path p new path get project elements add p set checked false return p
creates a nested code lt path gt code element
public void end packages int num report fmt end packages num prefix
indicates end of packages section
public void end report report fmt end report prefix
indicates end of report
public void end roles int num report fmt end roles num prefix
indicates end of roles section
public void end unassigned roles int num report fmt end unassigned roles num prefix
indicates end of unassigned roles section
public urlpath create urlpath check children allowed urlpath p new urlpath get project elements add p set checked false return p
creates the nested code lt urlpath gt code element
public void report attribute string name string value report fmt format attribute name value prefix
reports a single attribute
public void report child role name report fmt format child name prefix
reports a single child
public void report class class s report fmt format class s prefix
reports the classloaders class
public urlpath element create urlpathelement check children allowed urlpath element pe new urlpath element elements add pe return pe
creates the nested code lt urlpathelement gt code element
public void report entry string type string entry report fmt format entry type entry prefix
reports a single entry
public string format package string pkg string prefix return prefix 0 package name pkg
formats a single defined package
public string format package string pkg string prefix return prefix 0 pkg
formats a single defined package
public void report entry url url report fmt format entry url prefix
reports a single url entry
public void report error string msg report fmt format error msg prefix
reports an error
public string format role role name string prefix return prefix 0 role type name get type name name get name null name name get name
formats a role
public void report exlicite parent role handle report fmt format explicite parent handle prefix
reports an explicit parent classloader
public void report implicite parent role handle report fmt format implicite parent handle prefix
reports an implicit parent classloader
public string format role role name string prefix return prefix 0 get role name
formats a role
public void report package string pkg report fmt format package pkg prefix
reports a single defined package
public void report role role handle report fmt format role handle prefix
reports a single role
public void report unassigned role role handle report fmt format unassigned role handle prefix
reports a single unassigned role
public void set location string location check attributes allowed create urlpathelement set location location
adds a element definition to the path
public class loader get default parent return null
gets the default parent classloader in the case this classloaders
protected string get default parent name return bootstrap
gets the symbolic name of the default parent classloader in the case
public void set path string path check attributes allowed create path element set path path
parses a path definition and creates single path elements