| Modifier and Type | Method and Description |
|---|---|
| public default N | |
| public static Optional | |
| public default Type | |
| public default Type | |
| public default Optional | |
| public default VariableDeclarator | |
| public NodeList | |
| public default N | |
| public default N | |
| public N |
| addVariable | back to summary |
|---|---|
public default N addVariable(VariableDeclarator variableDeclarator)
| |
| calculateMaximumCommonType | back to summary |
|---|---|
| public static Optional | |
| getCommonType | back to summary |
|---|---|
| public default Type getCommonType() Returns the type that is shared between all variables.
This is a shortcut for when you are certain that all variables share one type.
What makes this difficult is arrays, and being able to set the type.
| |
| getElementType | back to summary |
|---|---|
| public default Type getElementType() Returns the element type.
Note no mention of b being an array.
| |
| getMaximumCommonType | back to summary |
|---|---|
| public default Optional Returns the type that maximum shared type between all variables. The minimum common type does never include annotations on the array level.
| |
| getVariable | back to summary |
|---|---|
| public default VariableDeclarator getVariable(int i) | |
| getVariables | back to summary |
|---|---|
| public NodeList | |
| setAllTypes | back to summary |
|---|---|
| public default N setAllTypes(Type newType) Sets the type of all variables. Erases any existing type. This is a shortcut for setting a type on all variable declarators separately.
| |
| setVariable | back to summary |
|---|---|
public default N setVariable(int i, VariableDeclarator variableDeclarator)
| |
| setVariables | back to summary |
|---|---|
| public N setVariables(NodeList<VariableDeclarator> variables) | |