Package com.jogamp.gluegen.cgram.types
Interface FunctionType.ParameterConsumer
-
- Enclosing class:
- FunctionType
public static interface FunctionType.ParameterConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
accept(int idx, int consumedCount, Type cType, String name)
Accept the arguments of the traversed collection element and return true if consumed.
-
-
-
Method Detail
-
accept
boolean accept(int idx, int consumedCount, Type cType, String name)
Accept the arguments of the traversed collection element and return true if consumed. Consumed elements will increased passed `consumedCount` state.- Parameters:
idx
- index of current element, ranges [0 .. size-1]consumedCount
- number of consumed elements, useful for e.g. `boolean needsSeparator = 0 < consumedCount`cType
- C Type of argumentname
- argument name- Returns:
- true to signal consumed and have traversing loop increment `consumedCount`, otherwise false
-
-