Package hydra.ext.csharp.syntax
Class ObjectCreationExpression
- java.lang.Object
-
- hydra.ext.csharp.syntax.ObjectCreationExpression
-
- All Implemented Interfaces:
java.io.Serializable
public class ObjectCreationExpression extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Opt<ArgumentList>
arguments
static Name
FIELD_NAME_ARGUMENTS
static Name
FIELD_NAME_INITIALIZER
static Name
FIELD_NAME_TYPE
Opt<ObjectOrCollectionInitializer>
initializer
Type
type
static Name
TYPE_NAME
-
Constructor Summary
Constructors Constructor Description ObjectCreationExpression(Type type, Opt<ArgumentList> arguments, Opt<ObjectOrCollectionInitializer> initializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
ObjectCreationExpression
withArguments(Opt<ArgumentList> arguments)
ObjectCreationExpression
withInitializer(Opt<ObjectOrCollectionInitializer> initializer)
ObjectCreationExpression
withType(Type type)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_TYPE
public static final Name FIELD_NAME_TYPE
-
FIELD_NAME_ARGUMENTS
public static final Name FIELD_NAME_ARGUMENTS
-
FIELD_NAME_INITIALIZER
public static final Name FIELD_NAME_INITIALIZER
-
type
public final Type type
-
arguments
public final Opt<ArgumentList> arguments
-
initializer
public final Opt<ObjectOrCollectionInitializer> initializer
-
-
Constructor Detail
-
ObjectCreationExpression
public ObjectCreationExpression(Type type, Opt<ArgumentList> arguments, Opt<ObjectOrCollectionInitializer> initializer)
-
-
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
-
withType
public ObjectCreationExpression withType(Type type)
-
withArguments
public ObjectCreationExpression withArguments(Opt<ArgumentList> arguments)
-
withInitializer
public ObjectCreationExpression withInitializer(Opt<ObjectOrCollectionInitializer> initializer)
-
-