Package hydra.java.syntax
Class Resource.Variable
- java.lang.Object
-
- hydra.java.syntax.Resource
-
- hydra.java.syntax.Resource.Variable
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Resource>
- Enclosing class:
- Resource
public static final class Resource.Variable extends Resource implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.java.syntax.Resource
Resource.Local, Resource.PartialVisitor<R>, Resource.Variable, Resource.Visitor<R>
-
-
Constructor Summary
Constructors Constructor Description Variable(VariableAccess value)Constructs an immutableResource.Variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(Resource.Visitor<R> visitor)Dispatch tovisitor.intcompareTo(Resource other)booleanequals(java.lang.Object other)inthashCode()
-
-
-
Field Detail
-
value
public final VariableAccess value
-
-
Constructor Detail
-
Variable
public Variable(VariableAccess value)
Constructs an immutableResource.Variable.
-
-
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(Resource other)
- Specified by:
compareToin interfacejava.lang.Comparable<Resource>
-
accept
public <R> R accept(Resource.Visitor<R> visitor)
Dispatch tovisitor.
-
-