|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun * Microsystems, Inc. All Rights Reserved. */ package org.apache.tools.ant.module.spi; import java.util.Set; import org.apache.tools.ant.module.run.LoggerTrampoline; /** * Describes the structure of a task. * Each instance corresponds to one task or nested element in a build script. * @author Jesse Glick * @since org.apache.tools.ant.module/3 3.12 */ public final class TaskStructure { static { LoggerTrampoline.TASK_STRUCTURE_CREATOR = new LoggerTrampoline.Creator() { public AntSession makeAntSession(LoggerTrampoline.AntSessionImpl impl) { throw new AssertionError(); } public AntEvent makeAntEvent(LoggerTrampoline.AntEventImpl impl) { throw new AssertionError(); } public TaskStructure makeTaskStructure(LoggerTrampoline.TaskStructureImpl impl) { return new TaskStructure(impl); } }; } private final LoggerTrampoline.TaskStructureImpl impl; private TaskStructure(LoggerTrampoline.TaskStructureImpl impl) { this.impl = impl; } /** * Get the element name. * XXX precise behavior w.r.t. namespaces etc. * @return a name, never null */ public String getName() { return impl.getName(); } /** * Get a single attribute. * It will be unevaluated as configured in the script. * If you wish to find the actual runtime value, you may * use {@link AntEvent#evaluate}. * @param name the attribute name * @return the raw value of that attribute, or null */ public String getAttribute(String name) { return impl.getAttribute(name); } /** * Get a set of all defined attribute names. * @return a set of names suitable for {@link #getAttribute}; may be empty but not null */ public Set/* |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.