public static final class CodingConvention.AssertionFunctionSpec
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CodingConvention.AssertionFunctionSpec.AssertionKind |
Modifier and Type | Method and Description |
---|---|
Node |
getAssertedArg(Node firstArg)
Returns which argument is actually being asserted, or null if fewer args than expected
|
java.lang.String |
getFunctionName()
Returns the name of the function.
|
static CodingConvention.AssertionFunctionSpec |
makeReturnTypeAssertion(java.lang.String functionName)
Returns an assertion function asserting the first param matches the return type
|
static CodingConvention.AssertionFunctionSpec |
makeTruthyAssertion(java.lang.String functionName)
Returns a truthy assertion function on the first param
|
static CodingConvention.AssertionFunctionSpec |
makeTruthyAssertion(java.lang.String functionName,
int paramIndex)
Returns an assertion function asserting the nth arg is truthy (0-indexed)
|
public static CodingConvention.AssertionFunctionSpec makeTruthyAssertion(java.lang.String functionName)
public static CodingConvention.AssertionFunctionSpec makeReturnTypeAssertion(java.lang.String functionName)
public static CodingConvention.AssertionFunctionSpec makeTruthyAssertion(java.lang.String functionName, int paramIndex)
public java.lang.String getFunctionName()
Copyright © 2009-2019 Google. All Rights Reserved.