Class ImportDeclaration

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    public class ImportDeclaration
    extends java.lang.Object
    implements java.io.Externalizable
    A class to represent an import declaration.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportDeclaration()
      Creates an empty import declaration
      ImportDeclaration​(java.lang.String target)
      Creates an import declaration for the given target.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getTarget()  
      int hashCode()  
      boolean matches​(java.lang.Class<?> clazz)
      Returns true if this ImportDeclaration correctly matches to the given clazz
      void readExternal​(java.io.ObjectInput in)  
      void setTarget​(java.lang.String target)  
      void writeExternal​(java.io.ObjectOutput out)  
      • Methods inherited from class java.lang.Object

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

      • ImportDeclaration

        public ImportDeclaration()
        Creates an empty import declaration
      • ImportDeclaration

        public ImportDeclaration​(java.lang.String target)
        Creates an import declaration for the given target.
        Parameters:
        target -
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • getTarget

        public java.lang.String getTarget()
      • setTarget

        public void setTarget​(java.lang.String target)
      • hashCode

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

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

        public boolean matches​(java.lang.Class<?> clazz)
        Returns true if this ImportDeclaration correctly matches to the given clazz
        Parameters:
        name -
        Returns: