File |
Line |
com\helger\jcodemodel\JEnumConstant.java |
167 |
com\helger\jcodemodel\JVar.java |
192 |
}
/**
* Adds an annotation to this variable.
*
* @param aClazz
* The annotation class to annotate the field with
*/
@Nonnull
public JAnnotationUse annotate (@Nonnull final AbstractJClass aClazz)
{
if (m_aAnnotations == null)
m_aAnnotations = new ArrayList <> ();
final JAnnotationUse a = new JAnnotationUse (aClazz);
m_aAnnotations.add (a);
return a;
}
/**
* Adds an annotation to this variable.
*
* @param aClazz
* The annotation class to annotate the field with
*/
@Nonnull
public JAnnotationUse annotate (@Nonnull final Class <? extends Annotation> aClazz)
{
return annotate (m_aType.owner ().ref (aClazz));
}
/**
* {@link IJAnnotatable#annotations()}
*/
@Nonnull
public Collection <JAnnotationUse> annotations ()
{
if (m_aAnnotations == null)
m_aAnnotations = new ArrayList <> ();
return Collections.unmodifiableList (m_aAnnotations);
} |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2296 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2353 |
@Nonnull final BigDecimal aUpperBoundInclusive)
{
notNull (aValue, aName);
notNull (aLowerBoundInclusive, "LowerBoundInclusive");
notNull (aUpperBoundInclusive, "UpperBoundInclusive");
if (isEnabled ())
if (aValue.compareTo (aLowerBoundInclusive) < 0 || aValue.compareTo (aUpperBoundInclusive) > 0)
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' must be >= " +
aLowerBoundInclusive +
" and <= " +
aUpperBoundInclusive +
"! The current value is: " +
aValue);
return aValue;
}
/**
* Check if
* <code>nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive</code>
*
* @param aValue
* Value
* @param sName
* Name
* @param aLowerBoundInclusive
* Lower bound
* @param aUpperBoundInclusive
* Upper bound
* @return The value
*/
public static BigInteger isBetweenInclusive (final BigInteger aValue, |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2680 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2737 |
@Nonnull final BigDecimal aUpperBoundExclusive)
{
notNull (aValue, aName);
notNull (aLowerBoundExclusive, "LowerBoundInclusive");
notNull (aUpperBoundExclusive, "UpperBoundInclusive");
if (isEnabled ())
if (aValue.compareTo (aLowerBoundExclusive) <= 0 || aValue.compareTo (aUpperBoundExclusive) >= 0)
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' must be > " +
aLowerBoundExclusive +
" and < " +
aUpperBoundExclusive +
"! The current value is: " +
aValue);
return aValue;
} |
File |
Line |
com\helger\jcodemodel\JEnumConstant.java |
167 |
com\helger\jcodemodel\JMethod.java |
361 |
com\helger\jcodemodel\JVar.java |
192 |
}
/**
* Adds an annotation to this variable.
*
* @param aClazz
* The annotation class to annotate the field with
*/
@Nonnull
public JAnnotationUse annotate (@Nonnull final AbstractJClass aClazz)
{
if (m_aAnnotations == null)
m_aAnnotations = new ArrayList <> ();
final JAnnotationUse a = new JAnnotationUse (aClazz);
m_aAnnotations.add (a);
return a;
}
/**
* Adds an annotation to this variable.
*
* @param aClazz
* The annotation class to annotate the field with
*/
@Nonnull
public JAnnotationUse annotate (@Nonnull final Class <? extends Annotation> aClazz)
{
return annotate (m_aType.owner ().ref (aClazz)); |
File |
Line |
com\helger\jcodemodel\JEnumConstant.java |
218 |
com\helger\jcodemodel\JEnumConstantRef.java |
100 |
}
public void generate (@Nonnull final IJFormatter f)
{
f.type (m_aType).print ('.').print (m_sName);
}
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || getClass () != o.getClass ())
return false;
final JEnumConstant rhs = (JEnumConstant) o; |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
343 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
379 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
415 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
451 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
487 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
523 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
559 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
595 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
631 |
public static <T> T [] notEmpty (final T [] aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.length == 0)
throw new IllegalArgumentException ("The value of the array '" + aName.get () + "' may not be empty!");
return aValue;
}
/**
* Check that the passed Array is neither <code>null</code> nor empty.
*
* @param aValue
* The Array to check.
* @param sName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is empty
*/
public static boolean [] notEmpty (final boolean [] aValue, final String sName) |
File |
Line |
com\helger\jcodemodel\JEnumConstant.java |
178 |
com\helger\jcodemodel\JMethod.java |
373 |
com\helger\jcodemodel\JPackage.java |
413 |
com\helger\jcodemodel\JVar.java |
204 |
if (m_aAnnotations == null)
m_aAnnotations = new ArrayList <> ();
final JAnnotationUse a = new JAnnotationUse (aClazz);
m_aAnnotations.add (a);
return a;
}
/**
* Adds an annotation to this variable.
*
* @param aClazz
* The annotation class to annotate the field with
*/
@Nonnull
public JAnnotationUse annotate (@Nonnull final Class <? extends Annotation> aClazz)
{
return annotate (m_aType.owner ().ref (aClazz)); |
File |
Line |
com\helger\jcodemodel\JNullType.java |
96 |
com\helger\jcodemodel\JTypeVar.java |
167 |
return Collections.emptyIterator ();
}
@Override
public boolean isInterface ()
{
return false;
}
@Override
public boolean isAbstract ()
{
return false;
}
@Override
@Nonnull
protected AbstractJClass substituteParams (@Nonnull final JTypeVar [] aVariables,
@Nonnull final List <? extends AbstractJClass> aBindings)
{ |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1428 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1473 |
final int nExpectedValue,
@Nonnull final Supplier <? extends String> aName)
{
if (isEnabled ())
if (nValue != nExpectedValue)
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' does not match the expected value. Passed value: " +
nValue +
" -- Expected value: " +
nExpectedValue);
}
/**
* Check that the passed value is the same as the provided expected value
* using <code>==</code> to check comparison.
*
* @param nValue
* The First value.
* @param nExpectedValue
* The expected value.
* @param sName
* The name of the value (e.g. the parameter name)
* @throws IllegalArgumentException
* if the passed value is not <code>null</code>.
*/
public static void isEqual (final long nValue, final long nExpectedValue, final String sName) |
File |
Line |
com\helger\jcodemodel\JEnumConstant.java |
232 |
com\helger\jcodemodel\JEnumConstantRef.java |
114 |
final JEnumConstant rhs = (JEnumConstant) o;
return isEqual (m_aType.fullName (), rhs.m_aType.fullName ()) && isEqual (m_sName, rhs.m_sName);
}
@Override
public int hashCode ()
{
return getHashCode (this, m_aType.fullName (), m_sName);
}
} |
File |
Line |
com\helger\jcodemodel\JDefinedClass.java |
787 |
com\helger\jcodemodel\JEnumConstant.java |
167 |
com\helger\jcodemodel\JMethod.java |
361 |
com\helger\jcodemodel\JVar.java |
192 |
}
@Nonnull
public JAnnotationUse annotate (@Nonnull final AbstractJClass aClazz)
{
if (m_aAnnotations == null)
m_aAnnotations = new ArrayList <> ();
final JAnnotationUse a = new JAnnotationUse (aClazz);
m_aAnnotations.add (a);
return a;
}
@Nonnull
public Collection <JAnnotationUse> annotations () |
File |
Line |
com\helger\jcodemodel\util\UnicodeEscapeWriter.java |
59 |
com\helger\jcodemodel\writer\AbstractCodeWriter.java |
69 |
{
private static final BitSet ESCAPE = new BitSet (128);
static
{
for (int i = 0; i < 0x20; i++)
if (i != '\t' && i != '\r' && i != '\n')
ESCAPE.set (i, true);
} |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2026 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2080 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2134 |
final int nUpperBoundInclusive)
{
if (isEnabled ())
if (nValue < nLowerBoundInclusive || nValue > nUpperBoundInclusive)
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' must be >= " +
nLowerBoundInclusive +
" and <= " +
nUpperBoundInclusive +
"! The current value is: " +
nValue);
return nValue;
}
/**
* Check if
* <code>nValue ≥ nLowerBoundInclusive && nValue ≤ nUpperBoundInclusive</code>
*
* @param nValue
* Value
* @param sName
* Name
* @param nLowerBoundInclusive
* Lower bound
* @param nUpperBoundInclusive
* Upper bound
* @return The value
*/
public static long isBetweenInclusive (final long nValue, |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2410 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2464 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2518 |
final int nUpperBoundExclusive)
{
if (isEnabled ())
if (nValue <= nLowerBoundExclusive || nValue >= nUpperBoundExclusive)
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' must be > " +
nLowerBoundExclusive +
" and < " +
nUpperBoundExclusive +
"! The current value is: " +
nValue);
return nValue;
}
/**
* Check if
* <code>nValue > nLowerBoundInclusive && nValue < nUpperBoundInclusive</code>
*
* @param nValue
* Value
* @param sName
* Name
* @param nLowerBoundExclusive
* Lower bound
* @param nUpperBoundExclusive
* Upper bound
* @return The value
*/
public static long isBetweenExclusive (final long nValue, |
File |
Line |
com\helger\jcodemodel\JAnnotationArrayMember.java |
390 |
com\helger\jcodemodel\JDefinedClass.java |
780 |
return this;
}
/**
* Adds a new annotation to the array.
*/
@Nonnull
public JAnnotationUse annotate (@Nonnull final Class <? extends Annotation> aClazz)
{
return annotate (owner ().ref (aClazz));
}
/**
* Adds a new annotation to the array.
*/
@Nonnull
public JAnnotationUse annotate (@Nonnull final AbstractJClass aClazz)
{ |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1536 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1552 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1568 |
public static int isGE0 (final int nValue, @Nonnull final Supplier <? extends String> aName)
{
if (isEnabled ())
if (nValue < 0)
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' must be >= 0! The current value is: " +
nValue);
return nValue;
}
public static long isGE0 (final long nValue, final String sName) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1650 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1666 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1682 |
public static int isGT0 (final int nValue, @Nonnull final Supplier <? extends String> aName)
{
if (isEnabled ())
if (nValue <= 0)
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' must be > 0! The current value is: " +
nValue);
return nValue;
}
public static long isGT0 (final long nValue, final String sName) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1764 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1780 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1796 |
public static int isLE0 (final int nValue, @Nonnull final Supplier <? extends String> aName)
{
if (isEnabled ())
if (nValue > 0)
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' must be <= 0! The current value is: " +
nValue);
return nValue;
}
public static long isLE0 (final long nValue, final String sName) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1878 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1894 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1910 |
public static int isLT0 (final int nValue, @Nonnull final Supplier <? extends String> aName)
{
if (isEnabled ())
if (nValue >= 0)
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' must be < 0! The current value is: " +
nValue);
return nValue;
}
public static long isLT0 (final long nValue, final String sName) |
File |
Line |
com\helger\jcodemodel\writer\JFormatter.java |
702 |
com\helger\jcodemodel\writer\JFormatter.java |
790 |
aClassToBeWritten.fullName () +
")");
AbstractJClass aRealReference = aReference;
if (aRealReference instanceof JAnonymousClass)
{
// get the super class of the anonymous class
aRealReference = ((JAnonymousClass) aRealReference).base ();
}
if (aRealReference instanceof JNarrowedClass)
{
// Remove the generic arguments
aRealReference = aRealReference.erasure ();
}
// Is it an inner class?
final AbstractJClass aOuter = aRealReference.outer (); |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
673 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
755 |
public static <T extends Collection <?>> T notEmpty (final T aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.isEmpty ())
throw new IllegalArgumentException ("The value of the collection '" + aName.get () + "' may not be empty!"); |
File |
Line |
com\helger\jcodemodel\JCast.java |
91 |
com\helger\jcodemodel\JOpBinary.java |
85 |
com\helger\jcodemodel\JOpTernary.java |
108 |
com\helger\jcodemodel\JOpUnary.java |
112 |
f.print ("((").generable (m_aType).print (')').generable (m_aObject).print (')');
}
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || getClass () != o.getClass ())
return false;
final JCast rhs = (JCast) o; |
File |
Line |
com\helger\jcodemodel\JBreak.java |
59 |
com\helger\jcodemodel\JContinue.java |
59 |
public JBreak (@Nullable final JLabel aLabel)
{
m_aLabel = aLabel;
}
@Nullable
public JLabel label ()
{
return m_aLabel;
}
public void state (@Nonnull final IJFormatter f)
{
if (m_aLabel == null)
f.print ("break;").newline (); |
File |
Line |
com\helger\jcodemodel\JArrayClass.java |
157 |
com\helger\jcodemodel\JNarrowedClass.java |
311 |
}
//
// Equality is based on value
//
@Override
public boolean equals (final Object obj)
{
if (obj == this)
return true;
if (obj == null || !getClass ().equals (obj.getClass ()))
return false;
final JArrayClass rhs = (JArrayClass) obj; |
File |
Line |
com\helger\jcodemodel\JEnumConstant.java |
222 |
com\helger\jcodemodel\JEnumConstantRef.java |
104 |
com\helger\jcodemodel\JVar.java |
254 |
f.type (m_aType).print ('.').print (m_sName);
}
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || getClass () != o.getClass ())
return false;
final JEnumConstant rhs = (JEnumConstant) o; |
File |
Line |
com\helger\jcodemodel\JNarrowedClass.java |
150 |
com\helger\jcodemodel\JNarrowedClass.java |
169 |
buf.append (m_aBasis.fullName ());
buf.append ('<');
boolean bFirst = true;
for (final AbstractJClass c : m_aArgs)
{
if (bFirst)
bFirst = false;
else
buf.append (',');
buf.append (c.fullName ()); |
File |
Line |
com\helger\jcodemodel\JAtomDouble.java |
80 |
com\helger\jcodemodel\JAtomInt.java |
67 |
com\helger\jcodemodel\JStringLiteral.java |
78 |
f.print (Double.toString (m_dWhat));
}
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || getClass () != o.getClass ())
return false;
final JAtomDouble rhs = (JAtomDouble) o; |
File |
Line |
com\helger\jcodemodel\JForEach.java |
94 |
com\helger\jcodemodel\JForLoop.java |
120 |
}
@Nonnull
public JBlock body ()
{
if (m_aBody == null)
m_aBody = new JBlock ();
return m_aBody;
}
public void state (@Nonnull final IJFormatter f)
{
f.print ("for ("); |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1005 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1048 |
public static <T extends Iterable <?>> T notNullNoNullValue (final T aValue,
@Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
noNullValue (aValue, aName);
return aValue;
}
/**
* Check that the passed map is not <code>null</code> and that no
* <code>null</code> value is contained.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The map to check.
* @param sName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is <code>null</code> or a <code>null</code>
* value is contained
*/
public static <T extends Map <?, ?>> T notNullNoNullValue (final T aValue, final String sName) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1133 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1176 |
public static <T extends Iterable <?>> T notEmptyNoNullValue (final T aValue,
@Nonnull final Supplier <? extends String> aName)
{
notEmpty (aValue, aName);
noNullValue (aValue, aName);
return aValue;
}
/**
* Check that the passed map is neither <code>null</code> nor empty and that
* no <code>null</code> value is contained.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The map to check.
* @param sName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is empty or a <code>null</code> value is
* contained
*/
public static <T extends Map <?, ?>> T notEmptyNoNullValue (final T aValue, final String sName) |
File |
Line |
com\helger\jcodemodel\JArray.java |
150 |
com\helger\jcodemodel\JArrayCompRef.java |
95 |
com\helger\jcodemodel\JAssignment.java |
126 |
com\helger\jcodemodel\JAtom.java |
75 |
com\helger\jcodemodel\JAtomDouble.java |
80 |
com\helger\jcodemodel\JAtomFloat.java |
81 |
com\helger\jcodemodel\JAtomInt.java |
67 |
com\helger\jcodemodel\JAtomLong.java |
69 |
com\helger\jcodemodel\JCast.java |
91 |
com\helger\jcodemodel\JEnumConstant.java |
222 |
com\helger\jcodemodel\JEnumConstantRef.java |
104 |
com\helger\jcodemodel\JFieldRef.java |
206 |
com\helger\jcodemodel\JOpBinary.java |
85 |
com\helger\jcodemodel\JOpTernary.java |
109 |
com\helger\jcodemodel\JOpUnary.java |
112 |
com\helger\jcodemodel\JStringLiteral.java |
78 |
com\helger\jcodemodel\JVar.java |
254 |
f.print ('}');
}
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || getClass () != o.getClass ())
return false;
final JArray rhs = (JArray) o; |
File |
Line |
com\helger\jcodemodel\JEnumConstant.java |
194 |
com\helger\jcodemodel\JPackage.java |
424 |
com\helger\jcodemodel\JVar.java |
221 |
return annotate (m_aType.owner ().ref (aClazz));
}
/**
* {@link IJAnnotatable#annotations()}
*/
@Nonnull
public Collection <JAnnotationUse> annotations ()
{
if (m_aAnnotations == null)
m_aAnnotations = new ArrayList <> ();
return Collections.unmodifiableList (m_aAnnotations);
} |
File |
Line |
com\helger\jcodemodel\meta\ClassFiller.java |
105 |
com\helger\jcodemodel\meta\DecidedErrorTypesModelsAdapter.java |
241 |
for (final Element enclosedElement : element.getEnclosedElements ())
{
if (enclosedElement.getKind ().equals (ElementKind.INTERFACE) ||
enclosedElement.getKind ().equals (ElementKind.CLASS)) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2773 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2779 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2785 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2791 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2797 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2803 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2809 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2815 |
public static void isArrayOfsLen (final Object [] aArray, @Nonnegative final int nOfs, @Nonnegative final int nLen)
{
notNull (aArray, "Array");
_isArrayOfsLen (aArray.length, nOfs, nLen);
}
public static void isArrayOfsLen (final boolean [] aArray, @Nonnegative final int nOfs, @Nonnegative final int nLen) |
File |
Line |
com\helger\jcodemodel\AbstractJGenerifiableImpl.java |
60 |
com\helger\jcodemodel\JInvocation.java |
423 |
public void declare (@Nonnull final IJFormatter f)
{
if (m_aTypeVariables != null && !m_aTypeVariables.isEmpty ())
{
f.print ('<');
int nIndex = 0;
for (final JTypeVar aTypeVar : m_aTypeVariables.values ()) |
File |
Line |
com\helger\jcodemodel\JArray.java |
151 |
com\helger\jcodemodel\JArrayCompRef.java |
96 |
com\helger\jcodemodel\JAssignment.java |
127 |
com\helger\jcodemodel\JAtom.java |
76 |
com\helger\jcodemodel\JAtomDouble.java |
81 |
com\helger\jcodemodel\JAtomFloat.java |
82 |
com\helger\jcodemodel\JAtomInt.java |
68 |
com\helger\jcodemodel\JAtomLong.java |
70 |
com\helger\jcodemodel\JCast.java |
92 |
com\helger\jcodemodel\JEnumConstant.java |
223 |
com\helger\jcodemodel\JEnumConstantRef.java |
105 |
com\helger\jcodemodel\JFieldRef.java |
207 |
com\helger\jcodemodel\JInvocation.java |
510 |
com\helger\jcodemodel\JOpBinary.java |
86 |
com\helger\jcodemodel\JOpTernary.java |
110 |
com\helger\jcodemodel\JOpUnary.java |
113 |
com\helger\jcodemodel\JStringLiteral.java |
79 |
com\helger\jcodemodel\JVar.java |
255 |
}
@Override
public boolean equals (final Object o)
{
if (o == this)
return true;
if (o == null || getClass () != o.getClass ())
return false;
final JArray rhs = (JArray) o; |
File |
Line |
com\helger\jcodemodel\JDoLoop.java |
77 |
com\helger\jcodemodel\JForEach.java |
94 |
com\helger\jcodemodel\JForLoop.java |
120 |
com\helger\jcodemodel\JSynchronizedBlock.java |
73 |
}
@Nonnull
public JBlock body ()
{
if (m_aBody == null)
m_aBody = new JBlock ();
return m_aBody;
}
public void state (@Nonnull final IJFormatter f)
{
f.print ("do"); |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1329 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1383 |
@Nullable final T aExpectedValue)
{
if (isEnabled ())
if (aValue != aExpectedValue)
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' does not match the expected value. Passed value: " +
aValue +
" -- Expected value: " +
aExpectedValue);
return aValue;
}
/**
* Check that the passed value is the same as the provided expected value
* using <code>equals</code> to check comparison.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The value to check.
* @param sName
* The name of the value (e.g. the parameter name)
* @param aExpectedValue
* The expected value. May be <code>null</code>.
* @return The passed value and maybe <code>null</code> if the expected value
* is null.
* @throws IllegalArgumentException
* if the passed value is not <code>null</code>.
*/
public static <T> T isEqual (final T aValue, @Nullable final T aExpectedValue, final String sName) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1616 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1730 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1844 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1958 |
public static BigDecimal isGE0 (final BigDecimal aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.compareTo (BigDecimal.ZERO) < 0) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1633 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1747 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1861 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1975 |
public static BigInteger isGE0 (final BigInteger aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.compareTo (BigInteger.ZERO) < 0) |
File |
Line |
com\helger\jcodemodel\JNarrowedClass.java |
131 |
com\helger\jcodemodel\JNarrowedClass.java |
151 |
com\helger\jcodemodel\JNarrowedClass.java |
170 |
buf.append (m_aBasis.name ()).append ('<');
boolean bFirst = true;
for (final AbstractJClass c : m_aArgs)
{
if (bFirst)
bFirst = false;
else
buf.append (',');
buf.append (c.name ()); |
File |
Line |
com\helger\jcodemodel\JCase.java |
102 |
com\helger\jcodemodel\JDoLoop.java |
77 |
com\helger\jcodemodel\JForEach.java |
94 |
com\helger\jcodemodel\JForLoop.java |
120 |
com\helger\jcodemodel\JSynchronizedBlock.java |
73 |
}
@Nonnull
public JBlock body ()
{
if (m_aBody == null)
m_aBody = new JBlock ();
return m_aBody;
}
public void state (@Nonnull final IJFormatter f)
{
f.indent (); |
File |
Line |
com\helger\jcodemodel\meta\Annotator.java |
170 |
com\helger\jcodemodel\meta\Annotator.java |
345 |
m_aAnnotationUse.param (name, _actualEnumConstantValue ((VariableElement) value));
}
catch (final ClassNotFoundException ex)
{
Logger.getLogger (Annotator.class.getName ())
.log (Level.WARNING,
"Not processing annotation argument: {0}: {1}",
new Object [] { name, value }); |
File |
Line |
com\helger\jcodemodel\meta\ClassFiller.java |
90 |
com\helger\jcodemodel\meta\ClassFiller.java |
126 |
environment.put (typeVariable.name (), typeVariable);
for (final TypeMirror type : parameter.getBounds ())
{
typeVariable.bound ((AbstractJClass) m_aModelsAdapter.toJType (type, environment)); |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
673 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
715 |
public static <T extends Collection <?>> T notEmpty (final T aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.isEmpty ()) |
File |
Line |
com\helger\jcodemodel\AbstractJClassContainer.java |
169 |
com\helger\jcodemodel\JDirectClass.java |
99 |
public String fullName ()
{
if (getOuter () instanceof AbstractJClassContainer <?>)
return ((AbstractJClassContainer <?>) getOuter ()).fullName () + '.' + name (); |
File |
Line |
com\helger\jcodemodel\meta\TypeMirrorToJTypeVisitor.java |
125 |
com\helger\jcodemodel\meta\TypeMirrorToJTypeVisitor.java |
239 |
return componentType.array ();
}
catch (final CodeModelBuildingException ex)
{
throw new RuntimeCodeModelBuildingException (ex);
}
catch (final ErrorTypeFound ex)
{
throw new RuntimeErrorTypeFound (ex);
}
}
@Override
public AbstractJType visitDeclared (final DeclaredType t, final Void p) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
303 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
673 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
755 |
public static <T extends CharSequence> T notEmpty (final T aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.length () == 0) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
715 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
755 |
public static <T extends Iterable <?>> T notEmpty (final T aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (!aValue.iterator ().hasNext ()) |
File |
Line |
com\helger\jcodemodel\JAnnotationArrayMember.java |
391 |
com\helger\jcodemodel\JDefinedClass.java |
781 |
com\helger\jcodemodel\JMethod.java |
378 |
}
/**
* Adds a new annotation to the array.
*/
@Nonnull
public JAnnotationUse annotate (@Nonnull final Class <? extends Annotation> aClazz)
{
return annotate (owner ().ref (aClazz));
}
/**
* Adds a new annotation to the array.
*/
@Nonnull
public JAnnotationUse annotate (@Nonnull final AbstractJClass aClazz) |
File |
Line |
com\helger\jcodemodel\JCase.java |
102 |
com\helger\jcodemodel\JDoLoop.java |
77 |
com\helger\jcodemodel\JForEach.java |
94 |
com\helger\jcodemodel\JForLoop.java |
120 |
com\helger\jcodemodel\JSynchronizedBlock.java |
73 |
com\helger\jcodemodel\JWhileLoop.java |
75 |
}
@Nonnull
public JBlock body ()
{
if (m_aBody == null)
m_aBody = new JBlock ();
return m_aBody;
}
public void state (@Nonnull final IJFormatter f)
{ |
File |
Line |
com\helger\jcodemodel\JDefinedClass.java |
792 |
com\helger\jcodemodel\JPackage.java |
413 |
if (m_aAnnotations == null)
m_aAnnotations = new ArrayList <> ();
final JAnnotationUse a = new JAnnotationUse (aClazz);
m_aAnnotations.add (a);
return a;
}
@Nonnull
public Collection <JAnnotationUse> annotations () |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
854 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
912 |
public static <T extends Iterable <?>> T noNullValue (final T aValue,
@Nonnull final Supplier <? extends String> aName)
{
if (isEnabled ())
if (aValue != null)
{ |
File |
Line |
com\helger\jcodemodel\meta\DecidedErrorTypesModelsAdapter.java |
153 |
com\helger\jcodemodel\meta\DecidedErrorTypesModelsAdapter.java |
191 |
public JDefinedClass getClass (final TypeElement element) throws CodeModelBuildingException, ErrorTypeFound
{
final Element enclosingElement = element.getEnclosingElement ();
if (enclosingElement instanceof PackageElement)
{
final PackageElement packageElement = (PackageElement) enclosingElement; |
File |
Line |
com\helger\jcodemodel\meta\TypeMirrorToJTypeVisitor.java |
126 |
com\helger\jcodemodel\meta\TypeMirrorToJTypeVisitor.java |
149 |
com\helger\jcodemodel\meta\TypeMirrorToJTypeVisitor.java |
240 |
}
catch (final CodeModelBuildingException ex)
{
throw new RuntimeCodeModelBuildingException (ex);
}
catch (final ErrorTypeFound ex)
{
throw new RuntimeErrorTypeFound (ex);
}
}
@Override
public AbstractJType visitDeclared (final DeclaredType t, final Void p) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
303 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
715 |
public static <T extends CharSequence> T notEmpty (final T aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.length () == 0) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
801 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
854 |
public static <T> T [] noNullValue (final T [] aValue, @Nonnull final Supplier <? extends String> aName)
{
if (isEnabled ())
if (aValue != null)
{
int nIndex = 0;
for (final T aItem : aValue) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
963 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1005 |
public static <T> T [] notNullNoNullValue (final T [] aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
noNullValue (aValue, aName);
return aValue;
}
/**
* Check that the passed collection is not <code>null</code> and that no
* <code>null</code> value is contained.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The collection to check.
* @param sName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is <code>null</code> or a <code>null</code>
* value is contained
*/
public static <T extends Iterable <?>> T notNullNoNullValue (final T aValue, final String sName) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1091 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1133 |
public static <T> T [] notEmptyNoNullValue (final T [] aValue, @Nonnull final Supplier <? extends String> aName)
{
notEmpty (aValue, aName);
noNullValue (aValue, aName);
return aValue;
}
/**
* Check that the passed collection is neither <code>null</code> nor empty and
* that no <code>null</code> value is contained.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The collection to check.
* @param sName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is empty or a <code>null</code> value is
* contained
*/
public static <T extends Iterable <?>> T notEmptyNoNullValue (final T aValue, final String sName) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2773 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2779 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2785 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2791 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2797 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2803 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2809 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2815 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
2821 |
public static void isArrayOfsLen (final Object [] aArray, @Nonnegative final int nOfs, @Nonnegative final int nLen)
{
notNull (aArray, "Array");
_isArrayOfsLen (aArray.length, nOfs, nLen);
} |
File |
Line |
com\helger\jcodemodel\JErrorClass.java |
121 |
com\helger\jcodemodel\JTypeWildcard.java |
140 |
throw new JErrorClassUsedException (m_sMessage);
}
@Override
public boolean isInterface ()
{
return false;
}
@Override
public boolean isAbstract ()
{
return false;
}
@Override
public boolean isError ()
{
return true; |
File |
Line |
com\helger\jcodemodel\JErrorClass.java |
146 |
com\helger\jcodemodel\JNullType.java |
109 |
}
@Override
@Nonnull
protected AbstractJClass substituteParams (@Nonnull final JTypeVar [] aVariables,
@Nonnull final List <? extends AbstractJClass> aBindings)
{
return this;
}
} |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
833 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
891 |
public static <T extends Iterable <?>> T noNullValue (final T aValue, final String sName)
{
return noNullValue (aValue, () -> sName);
}
/**
* Check that the passed iterable contains no <code>null</code> value. But the
* whole iterable can be <code>null</code> or empty.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The collection to check. May be <code>null</code>.
* @param aName
* The name of the value (e.g. the parameter name)
* @return The passed value. Maybe <code>null</code>.
* @throws IllegalArgumentException
* if the passed value is not empty and a <code>null</code> value is
* contained
*/
@Nullable
public static <T extends Iterable <?>> T noNullValue (final T aValue, |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
963 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1048 |
public static <T> T [] notNullNoNullValue (final T [] aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
noNullValue (aValue, aName);
return aValue;
}
/**
* Check that the passed collection is not <code>null</code> and that no
* <code>null</code> value is contained.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The collection to check.
* @param sName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is <code>null</code> or a <code>null</code>
* value is contained
*/
public static <T extends Iterable <?>> T notNullNoNullValue (final T aValue, final String sName) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1091 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1176 |
public static <T> T [] notEmptyNoNullValue (final T [] aValue, @Nonnull final Supplier <? extends String> aName)
{
notEmpty (aValue, aName);
noNullValue (aValue, aName);
return aValue;
}
/**
* Check that the passed collection is neither <code>null</code> nor empty and
* that no <code>null</code> value is contained.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The collection to check.
* @param sName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is empty or a <code>null</code> value is
* contained
*/
public static <T extends Iterable <?>> T notEmptyNoNullValue (final T aValue, final String sName) |
File |
Line |
com\helger\jcodemodel\JAnnotationUse.java |
568 |
com\helger\jcodemodel\JAnnotationUse.java |
657 |
public JAnnotationUse param (@Nonnull final String sName, @Nonnull final Enum <?> aValue)
{
return _addValue (sName, wrap (aValue));
}
@Nonnull
public JAnnotationUse paramArray (@Nonnull final String sName, @Nonnull final Enum <?>... aValues) |
File |
Line |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
279 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
429 |
public JCHashCodeGenerator append (@Nullable final Object x)
{
_checkClosed ();
m_nHC = JCHashCodeCalculator.append (m_nHC, x);
return this;
}
/**
* Object hash code generation.
*
* @param x
* Array to add
* @return this
*/
@Nonnull
public JCHashCodeGenerator append (@Nullable final Enum <?> x) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
654 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
696 |
public static <T extends Collection <?>> T notEmpty (final T aValue, final String sName)
{
return notEmpty (aValue, () -> sName);
}
/**
* Check that the passed {@link Collection} is neither <code>null</code> nor
* empty.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The String to check.
* @param aName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is empty
*/
public static <T extends Collection <?>> T notEmpty (final T aValue, @Nonnull final Supplier <? extends String> aName) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1616 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1633 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1730 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1747 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1844 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1861 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1958 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1975 |
public static BigDecimal isGE0 (final BigDecimal aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.compareTo (BigDecimal.ZERO) < 0) |
File |
Line |
com\helger\jcodemodel\meta\TypeMirrorToJTypeVisitor.java |
125 |
com\helger\jcodemodel\meta\TypeMirrorToJTypeVisitor.java |
176 |
com\helger\jcodemodel\meta\TypeMirrorToJTypeVisitor.java |
239 |
return componentType.array ();
}
catch (final CodeModelBuildingException ex)
{
throw new RuntimeCodeModelBuildingException (ex);
}
catch (final ErrorTypeFound ex)
{
throw new RuntimeErrorTypeFound (ex);
}
} |
File |
Line |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
294 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
489 |
public JCHashCodeGenerator append (@Nullable final Enum <?> x)
{
_checkClosed ();
m_nHC = JCHashCodeCalculator.append (m_nHC, x);
return this;
}
/**
* Array hash code generation.
*
* @param x
* Array to add
* @return this
*/
@Nonnull
public JCHashCodeGenerator append (@Nullable final boolean [] x) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
303 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
343 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
379 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
415 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
451 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
487 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
523 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
559 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
595 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
631 |
public static <T extends CharSequence> T notEmpty (final T aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.length () == 0) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
654 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
696 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
737 |
public static <T extends Collection <?>> T notEmpty (final T aValue, final String sName)
{
return notEmpty (aValue, () -> sName);
}
/**
* Check that the passed {@link Collection} is neither <code>null</code> nor
* empty.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The String to check.
* @param aName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is empty
*/
public static <T extends Collection <?>> T notEmpty (final T aValue, @Nonnull final Supplier <? extends String> aName) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
985 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1028 |
public static <T extends Iterable <?>> T notNullNoNullValue (final T aValue, final String sName)
{
return notNullNoNullValue (aValue, () -> sName);
}
/**
* Check that the passed collection is not <code>null</code> and that no
* <code>null</code> value is contained.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The collection to check.
* @param aName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is <code>null</code> or a <code>null</code>
* value is contained
*/
public static <T extends Iterable <?>> T notNullNoNullValue (final T aValue, |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1113 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1156 |
public static <T extends Iterable <?>> T notEmptyNoNullValue (final T aValue, final String sName)
{
return notEmptyNoNullValue (aValue, () -> sName);
}
/**
* Check that the passed collection is neither <code>null</code> nor empty and
* that no <code>null</code> value is contained.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The collection to check.
* @param aName
* The name of the value (e.g. the parameter name)
* @return The passed value.
* @throws IllegalArgumentException
* if the passed value is empty or a <code>null</code> value is
* contained
*/
public static <T extends Iterable <?>> T notEmptyNoNullValue (final T aValue, |
File |
Line |
com\helger\jcodemodel\JArrayClass.java |
117 |
com\helger\jcodemodel\JTypeVar.java |
167 |
return Collections.<AbstractJClass> emptyList ().iterator ();
}
@Override
public boolean isInterface ()
{
return false;
}
@Override
public boolean isAbstract ()
{
return false;
}
@Override |
File |
Line |
com\helger\jcodemodel\JLambdaMethodRef.java |
156 |
com\helger\jcodemodel\JLambdaMethodRef.java |
201 |
JCValueEnforcer.notNull (aVar, "Var");
JCValueEnforcer.notNull (aMethod, "Method");
JCValueEnforcer.isFalse (aMethod.mods ().isStatic (),
"Only instance methods can be used with this constructor. Use the constructor with JMethod only for static methods.");
m_bStatic = false;
m_aType = aVar.type (); |
File |
Line |
com\helger\jcodemodel\meta\TypeMirrorToJTypeVisitor.java |
149 |
com\helger\jcodemodel\meta\TypeMirrorToJTypeVisitor.java |
177 |
}
catch (final CodeModelBuildingException ex)
{
throw new RuntimeCodeModelBuildingException (ex);
}
catch (final ErrorTypeFound ex)
{
throw new RuntimeErrorTypeFound (ex);
}
} |
File |
Line |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
294 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
489 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
502 |
public JCHashCodeGenerator append (@Nullable final Enum <?> x)
{
_checkClosed ();
m_nHC = JCHashCodeCalculator.append (m_nHC, x);
return this;
}
/**
* Array hash code generation.
*
* @param x
* Array to add
* @return this
*/
@Nonnull
public JCHashCodeGenerator append (@Nullable final boolean [] x) |
File |
Line |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
309 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
324 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
339 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
354 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
369 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
384 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
399 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
414 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
429 |
com\helger\jcodemodel\util\JCHashCodeGenerator.java |
444 |
public JCHashCodeGenerator append (@Nullable final boolean [] x)
{
_checkClosed ();
m_nHC = JCHashCodeCalculator.append (m_nHC, x);
return this;
}
/**
* Array hash code generation.
*
* @param x
* Array to add
* @return this
*/
@Nonnull
public JCHashCodeGenerator append (@Nullable final byte [] x) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
303 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1616 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1633 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1730 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1747 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1844 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1861 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1958 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1975 |
public static <T extends CharSequence> T notEmpty (final T aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.length () == 0) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
343 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
379 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
415 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
451 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
487 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
523 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
559 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
595 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
631 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
673 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
755 |
public static <T> T [] notEmpty (final T [] aValue, @Nonnull final Supplier <? extends String> aName)
{
notNull (aValue, aName);
if (isEnabled ())
if (aValue.length == 0) |
File |
Line |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1278 |
com\helger\jcodemodel\util\JCValueEnforcer.java |
1332 |
if (!aValue.equals (aExpectedValue))
throw new IllegalArgumentException ("The value of '" +
aName.get () +
"' does not match the expected value. Passed value: " +
aValue +
" -- Expected value: " +
aExpectedValue);
return aValue;
}
/**
* Check that the passed value is the same as the provided expected value
* using <code>==</code> to check comparison.
*
* @param <T>
* Type to be checked and returned
* @param aValue
* The value to check.
* @param sName
* The name of the value (e.g. the parameter name)
* @param aExpectedValue
* The expected value. May be <code>null</code>.
* @return The passed value and maybe <code>null</code> if the expected value
* is null.
* @throws IllegalArgumentException
* if the passed value is not <code>null</code>.
*/
public static <T> T isSame (final T aValue, final String sName, @Nullable final T aExpectedValue) |
File |
Line |
com\helger\jcodemodel\writer\OutputStreamCodeWriter.java |
104 |
com\helger\jcodemodel\writer\SingleStreamCodeWriter.java |
102 |
return new FilterOutputStream (m_aPS)
{
@Override
public void close ()
{
// don't let this stream close
}
};
}
@Override
public void close () throws IOException
{
m_aPS.close (); |