1 19 20 package org.apache.tools.ant.module.spi; 21 22 import java.util.Set ; 23 import org.apache.tools.ant.module.run.LoggerTrampoline; 24 25 31 public final class TaskStructure { 32 33 static { 34 LoggerTrampoline.TASK_STRUCTURE_CREATOR = new LoggerTrampoline.Creator() { 35 public AntSession makeAntSession(LoggerTrampoline.AntSessionImpl impl) { 36 throw new AssertionError (); 37 } 38 public AntEvent makeAntEvent(LoggerTrampoline.AntEventImpl impl) { 39 throw new AssertionError (); 40 } 41 public TaskStructure makeTaskStructure(LoggerTrampoline.TaskStructureImpl impl) { 42 return new TaskStructure(impl); 43 } 44 }; 45 } 46 47 private final LoggerTrampoline.TaskStructureImpl impl; 48 private TaskStructure(LoggerTrampoline.TaskStructureImpl impl) { 49 this.impl = impl; 50 } 51 52 57 public String getName() { 58 return impl.getName(); 59 } 60 61 69 public String getAttribute(String name) { 70 return impl.getAttribute(name); 71 } 72 73 77 public Set <String > getAttributeNames() { 78 return impl.getAttributeNames(); 79 } 80 81 88 public String getText() { 89 return impl.getText(); 90 } 91 92 96 public TaskStructure[] getChildren() { 97 return impl.getChildren(); 98 } 99 100 @Override 101 public String toString() { 102 return impl.toString(); 103 } 104 105 } 106 | Popular Tags |