Package hydra.ext.java.syntax
Class MethodHeader
- java.lang.Object
-
- hydra.ext.java.syntax.MethodHeader
-
- All Implemented Interfaces:
java.io.Serializable
public class MethodHeader extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description MethodDeclarator
declarator
static Name
FIELD_NAME_DECLARATOR
static Name
FIELD_NAME_PARAMETERS
static Name
FIELD_NAME_RESULT
static Name
FIELD_NAME_THROWS
java.util.List<TypeParameter>
parameters
Result
result
Opt<Throws>
throws_
static Name
TYPE_NAME
-
Constructor Summary
Constructors Constructor Description MethodHeader(java.util.List<TypeParameter> parameters, Result result, MethodDeclarator declarator, Opt<Throws> throws_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
MethodHeader
withDeclarator(MethodDeclarator declarator)
MethodHeader
withParameters(java.util.List<TypeParameter> parameters)
MethodHeader
withResult(Result result)
MethodHeader
withThrows(Opt<Throws> throws_)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_PARAMETERS
public static final Name FIELD_NAME_PARAMETERS
-
FIELD_NAME_RESULT
public static final Name FIELD_NAME_RESULT
-
FIELD_NAME_DECLARATOR
public static final Name FIELD_NAME_DECLARATOR
-
FIELD_NAME_THROWS
public static final Name FIELD_NAME_THROWS
-
parameters
public final java.util.List<TypeParameter> parameters
-
result
public final Result result
-
declarator
public final MethodDeclarator declarator
-
-
Constructor Detail
-
MethodHeader
public MethodHeader(java.util.List<TypeParameter> parameters, Result result, MethodDeclarator declarator, Opt<Throws> throws_)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
withParameters
public MethodHeader withParameters(java.util.List<TypeParameter> parameters)
-
withResult
public MethodHeader withResult(Result result)
-
withDeclarator
public MethodHeader withDeclarator(MethodDeclarator declarator)
-
withThrows
public MethodHeader withThrows(Opt<Throws> throws_)
-
-