com.mysema.query.types.custom
Class CustomMixin<T>

java.lang.Object
  extended by com.mysema.query.types.custom.CustomMixin<T>
Type Parameters:
T -
All Implemented Interfaces:
Custom<T>, Serializable

public final class CustomMixin<T>
extends Object
implements Custom<T>, Serializable

Mixin implementation of the Custom interface

Author:
tiwe
See Also:
Serialized Form

Constructor Summary
CustomMixin(Custom<T> self, List<Expr<?>> args, Template template)
           
 
Method Summary
 Expr<T> asExpr()
          Cast to Expr
 boolean equals(Object o)
           
 Expr<?> getArg(int index)
          Get the argument with the given index
 List<Expr<?>> getArgs()
          Get the arguments of the custom expression
 Template getTemplate()
          Get the serialization template for this custom expression
 Class<? extends T> getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomMixin

public CustomMixin(Custom<T> self,
                   List<Expr<?>> args,
                   Template template)
Method Detail

getArg

public Expr<?> getArg(int index)
Description copied from interface: Custom
Get the argument with the given index

Specified by:
getArg in interface Custom<T>
Returns:

getArgs

public List<Expr<?>> getArgs()
Description copied from interface: Custom
Get the arguments of the custom expression

Specified by:
getArgs in interface Custom<T>
Returns:

getTemplate

public Template getTemplate()
Description copied from interface: Custom
Get the serialization template for this custom expression

Specified by:
getTemplate in interface Custom<T>
Returns:

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getType

public Class<? extends T> getType()
Specified by:
getType in interface Custom<T>
Returns:

asExpr

public Expr<T> asExpr()
Description copied from interface: Custom
Cast to Expr

Specified by:
asExpr in interface Custom<T>
Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.