Class TargetInfo


  • public class TargetInfo
    extends java.lang.Object
    Represents information about a target within an Ant build file. Clients may not instantiate or subclass this class.
    Since:
    2.1
    Restriction:
    This class is not intended to be subclassed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Constructor Summary

      Constructors 
      Constructor Description
      TargetInfo​(ProjectInfo project, java.lang.String name, java.lang.String description, java.lang.String[] dependencies, boolean isDefault)
      Create a target information
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String[] getDependencies()
      Return the names of the targets that this target depends on.
      java.lang.String getDescription()
      Returns the target description or null if no description is provided.
      java.lang.String getName()
      Returns the target name.
      ProjectInfo getProject()
      Returns the ProjectInfo of the enclosing project.
      int hashCode()  
      boolean isDefault()
      Returns whether this is the build file default target.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TargetInfo

        public TargetInfo​(ProjectInfo project,
                          java.lang.String name,
                          java.lang.String description,
                          java.lang.String[] dependencies,
                          boolean isDefault)
        Create a target information
        Parameters:
        name - target name
        description - a brief explanation of the target's purpose or null if not specified
        project - enclosing project
        dependencies - names of prerequisite projects
        isDefault - whether this is the build file default target
        Since:
        3.3
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the target name.
        Returns:
        the target name
      • getDescription

        public java.lang.String getDescription()
        Returns the target description or null if no description is provided.
        Returns:
        the target description or null if none
      • getProject

        public ProjectInfo getProject()
        Returns the ProjectInfo of the enclosing project.
        Returns:
        the project info for the enclosing project
      • getDependencies

        public java.lang.String[] getDependencies()
        Return the names of the targets that this target depends on.
        Returns:
        the dependent names
      • isDefault

        public boolean isDefault()
        Returns whether this is the build file default target.
        Returns:
        whether this is the build file default target
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object