Package hydra.java.syntax
Class TryStatement.WithResources
- java.lang.Object
-
- hydra.java.syntax.TryStatement
-
- hydra.java.syntax.TryStatement.WithResources
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TryStatement>
- Enclosing class:
- TryStatement
public static final class TryStatement.WithResources extends TryStatement implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.java.syntax.TryStatement
TryStatement.PartialVisitor<R>, TryStatement.Simple, TryStatement.Visitor<R>, TryStatement.WithFinally, TryStatement.WithResources
-
-
Field Summary
Fields Modifier and Type Field Description TryWithResourcesStatementvalue-
Fields inherited from class hydra.java.syntax.TryStatement
SIMPLE, TYPE_, WITH_FINALLY, WITH_RESOURCES
-
-
Constructor Summary
Constructors Constructor Description WithResources(TryWithResourcesStatement value)Constructs an immutableTryStatement.WithResources.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(TryStatement.Visitor<R> visitor)Dispatch tovisitor.intcompareTo(TryStatement other)booleanequals(java.lang.Object other)inthashCode()
-
-
-
Field Detail
-
value
public final TryWithResourcesStatement value
-
-
Constructor Detail
-
WithResources
public WithResources(TryWithResourcesStatement value)
Constructs an immutableTryStatement.WithResources.
-
-
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(TryStatement other)
- Specified by:
compareToin interfacejava.lang.Comparable<TryStatement>
-
accept
public <R> R accept(TryStatement.Visitor<R> visitor)
Dispatch tovisitor.- Specified by:
acceptin classTryStatement
-
-