Package hydra.java.syntax
Class ModuleDirective_Provides
- java.lang.Object
-
- hydra.java.syntax.ModuleDirective_Provides
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ModuleDirective_Provides>
public class ModuleDirective_Provides extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ModuleDirective_Provides>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description TypeNametostatic NameTOName of thehydra.java.syntax.ModuleDirective_Provides.tofield.static NameTYPE_Name of thehydra.java.syntax.ModuleDirective_Providestype.java.util.List<TypeName>withAt least one typestatic NameWITHName of thehydra.java.syntax.ModuleDirective_Provides.withfield.
-
Constructor Summary
Constructors Constructor Description ModuleDirective_Provides(TypeName to, java.util.List<TypeName> with)Constructs an immutableModuleDirective_Provides.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ModuleDirective_Provides other)booleanequals(java.lang.Object other)inthashCode()ModuleDirective_ProvideswithTo(TypeName to)Returns a copy of thisModuleDirective_Provideswithtoreplaced.ModuleDirective_ProvideswithWith(java.util.List<TypeName> with)Returns a copy of thisModuleDirective_Provideswithwithreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.java.syntax.ModuleDirective_Providestype.
-
TO
public static final Name TO
Name of thehydra.java.syntax.ModuleDirective_Provides.tofield.
-
WITH
public static final Name WITH
Name of thehydra.java.syntax.ModuleDirective_Provides.withfield.
-
to
public final TypeName to
-
with
public final java.util.List<TypeName> with
At least one type
-
-
Constructor Detail
-
ModuleDirective_Provides
public ModuleDirective_Provides(TypeName to, java.util.List<TypeName> with)
Constructs an immutableModuleDirective_Provides.- Parameters:
with- At least one type
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(ModuleDirective_Provides other)
- Specified by:
compareToin interfacejava.lang.Comparable<ModuleDirective_Provides>
-
withTo
public ModuleDirective_Provides withTo(TypeName to)
Returns a copy of thisModuleDirective_Provideswithtoreplaced.
-
withWith
public ModuleDirective_Provides withWith(java.util.List<TypeName> with)
Returns a copy of thisModuleDirective_Provideswithwithreplaced.
-
-