public VariableTreeImpl completeIdentifierAndDims(IdentifierTreeImpl simpleName, ArrayTypeTreeImpl nestedDimensions) { this.simpleName = simpleName; if (this.nestedDimensions != null) { ArrayTypeTreeImpl newType = nestedDimensions; newType.completeType(this.nestedDimensions); this.nestedDimensions = newType; } else { this.nestedDimensions = nestedDimensions; } return this; }
public void setLastChildType(TypeTree type) { ArrayTypeTree childType = this; while (childType.type() != null && childType.is(Tree.Kind.ARRAY_TYPE)) { childType = (ArrayTypeTree) childType.type(); } ((ArrayTypeTreeImpl) childType).completeType(type); }
public VariableTreeImpl completeIdentifierAndDims(IdentifierTreeImpl simpleName, ArrayTypeTreeImpl nestedDimensions) { this.simpleName = simpleName; if (this.nestedDimensions != null) { ArrayTypeTreeImpl newType = nestedDimensions; newType.completeType(this.nestedDimensions); this.nestedDimensions = newType; } else { this.nestedDimensions = nestedDimensions; } return this; }
public void setLastChildType(TypeTree type) { ArrayTypeTree childType = this; while (childType.type() != null && childType.is(Tree.Kind.ARRAY_TYPE)) { childType = (ArrayTypeTree) childType.type(); } ((ArrayTypeTreeImpl) childType).completeType(type); }
public VariableTreeImpl completeIdentifierAndDims(IdentifierTreeImpl simpleName, ArrayTypeTreeImpl nestedDimensions) { this.simpleName = simpleName; if (this.nestedDimensions != null) { ArrayTypeTreeImpl newType = nestedDimensions; newType.completeType(this.nestedDimensions); this.nestedDimensions = newType; } else { this.nestedDimensions = nestedDimensions; } return this; }
public void setLastChildType(TypeTree type) { ArrayTypeTree childType = this; while (childType.type() != null && childType.is(Tree.Kind.ARRAY_TYPE)) { childType = (ArrayTypeTree) childType.type(); } ((ArrayTypeTreeImpl) childType).completeType(type); }