org.jvnet.jaxb2_commons.plugin.simplehashcode
Class HashCodeArguments

java.lang.Object
  extended by org.jvnet.jaxb2_commons.plugin.simplehashcode.HashCodeArguments
All Implemented Interfaces:
Arguments<HashCodeArguments>

public class HashCodeArguments
extends Object
implements Arguments<HashCodeArguments>


Constructor Summary
HashCodeArguments(com.sun.codemodel.JCodeModel codeModel, com.sun.codemodel.JVar currentHashCode, int multiplier, com.sun.codemodel.JVar value, com.sun.codemodel.JExpression hasSetValue)
           
 
Method Summary
 com.sun.codemodel.JExpression _instanceof(com.sun.codemodel.JType type)
           
 com.sun.codemodel.JBlock _while(com.sun.codemodel.JBlock block)
           
 HashCodeArguments cast(String suffix, com.sun.codemodel.JBlock block, com.sun.codemodel.JType jaxbElementType, boolean suppressWarnings)
           
 com.sun.codemodel.JVar currentHashCode()
           
 HashCodeArguments element(com.sun.codemodel.JBlock subBlock, com.sun.codemodel.JType elementType)
           
 com.sun.codemodel.JExpression hasSetValue()
           
 com.sun.codemodel.JBlock ifHasSetValue(com.sun.codemodel.JBlock block, boolean isAlwaysSet, boolean checkForNullRequired)
           
 HashCodeArguments iterator(com.sun.codemodel.JBlock block, com.sun.codemodel.JType elementType)
           
 int multiplier()
           
 HashCodeArguments property(com.sun.codemodel.JBlock block, String propertyName, String propertyMethod, com.sun.codemodel.JType declarablePropertyType, com.sun.codemodel.JType propertyType, Collection<com.sun.codemodel.JType> possiblePropertyTypes)
           
 com.sun.codemodel.JVar value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashCodeArguments

public HashCodeArguments(com.sun.codemodel.JCodeModel codeModel,
                         com.sun.codemodel.JVar currentHashCode,
                         int multiplier,
                         com.sun.codemodel.JVar value,
                         com.sun.codemodel.JExpression hasSetValue)
Method Detail

currentHashCode

public com.sun.codemodel.JVar currentHashCode()

multiplier

public int multiplier()

value

public com.sun.codemodel.JVar value()

hasSetValue

public com.sun.codemodel.JExpression hasSetValue()

property

public HashCodeArguments property(com.sun.codemodel.JBlock block,
                                  String propertyName,
                                  String propertyMethod,
                                  com.sun.codemodel.JType declarablePropertyType,
                                  com.sun.codemodel.JType propertyType,
                                  Collection<com.sun.codemodel.JType> possiblePropertyTypes)
Specified by:
property in interface Arguments<HashCodeArguments>

iterator

public HashCodeArguments iterator(com.sun.codemodel.JBlock block,
                                  com.sun.codemodel.JType elementType)
Specified by:
iterator in interface Arguments<HashCodeArguments>

element

public HashCodeArguments element(com.sun.codemodel.JBlock subBlock,
                                 com.sun.codemodel.JType elementType)
Specified by:
element in interface Arguments<HashCodeArguments>

_instanceof

public com.sun.codemodel.JExpression _instanceof(com.sun.codemodel.JType type)
Specified by:
_instanceof in interface Arguments<HashCodeArguments>

cast

public HashCodeArguments cast(String suffix,
                              com.sun.codemodel.JBlock block,
                              com.sun.codemodel.JType jaxbElementType,
                              boolean suppressWarnings)
Specified by:
cast in interface Arguments<HashCodeArguments>

ifHasSetValue

public com.sun.codemodel.JBlock ifHasSetValue(com.sun.codemodel.JBlock block,
                                              boolean isAlwaysSet,
                                              boolean checkForNullRequired)
Specified by:
ifHasSetValue in interface Arguments<HashCodeArguments>

_while

public com.sun.codemodel.JBlock _while(com.sun.codemodel.JBlock block)
Specified by:
_while in interface Arguments<HashCodeArguments>


Copyright © 2005-2014. All Rights Reserved.