@Override public String getName() { return internal.getName().getIdentifier(); }
public static Set<String> getPreviousTypeParamNames(List<TypeParameter> typeParams, ASTNode missingNode) { Set<String> previousNames= new HashSet<>(); for (int i = 0; i < typeParams.size(); i++) { TypeParameter curr= typeParams.get(i); if (curr == missingNode) { return previousNames; } previousNames.add('<' + curr.getName().getIdentifier() + '>'); } return previousNames; }
final ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child) { if (property == NAME_PROPERTY) { if (get) { return getName(); } else { setName((SimpleName) child); return null; } } // allow default implementation to flag the error return super.internalGetSetChildProperty(property, get, child); }
@Override public boolean visit(TypeParameter node) { if (found(node, node.getName()) && this.resolveBinding) this.foundBinding = node.resolveBinding(); return true; }
public boolean visit(TypeParameter node) { if (found(node, node.getName()) && this.resolveBinding) this.foundBinding = node.resolveBinding(); return true; }
public boolean visit(TypeParameter node) { if (found(node, node.getName()) && this.resolveBinding) this.foundBinding = node.resolveBinding(); return true; }
public boolean visit(TypeParameter node) { IValue name = values.string(node.getName().getFullyQualifiedName()); IValueList extendsList = new IValueList(values); if (!node.typeBounds().isEmpty()) { for (Iterator it = node.typeBounds().iterator(); it.hasNext();) { Type t = (Type) it.next(); extendsList.add(visitChild(t)); } } ownValue = constructDeclarationNode("typeParameter", name, extendsList.asList()); return false; }
@Override public void endVisit(TypeParameter node) { if (skipNode(node)) { return; } GenericSequentialFlowInfo info = processSequential(node, node.getName()); process(info, node.typeBounds()); }
public boolean visit(TypeParameter node) { if (hasFlag(TYPES, fFlags) && node.getStartPosition() < fPosition) { fBreak= fRequestor.acceptBinding(node.getName().resolveBinding()); } return !fBreak; }
@Override public boolean visit(TypeParameter node) { if (hasFlag(TYPES, fFlags) && node.getStartPosition() < fPosition) { fBreak= fRequestor.acceptBinding(node.getName().resolveBinding()); } return !fBreak; }
int treeSize() { return memSize() + (this.modifiers == null ? 0 : this.modifiers.listSize()) + (this.typeVariableName == null ? 0 : getName().treeSize()) + this.typeBounds.listSize(); } }
@SuppressWarnings("unchecked") @Override public boolean visit(TypeParameter node) { pushNode(node, node.getName().getFullyQualifiedName()); visitList(node.typeBounds()); return false; }
@Override public void endVisit(TypeParameter node) { if (skipNode(node)) return; GenericSequentialFlowInfo info= processSequential(node, node.getName()); process(info, node.typeBounds()); }
int treeSize() { return memSize() + (this.modifiers == null ? 0 : this.modifiers.listSize()) + (this.typeVariableName == null ? 0 : getName().treeSize()) + this.typeBounds.listSize(); } }
int treeSize() { return memSize() + (this.modifiers == null ? 0 : this.modifiers.listSize()) + (this.typeVariableName == null ? 0 : getName().treeSize()) + this.typeBounds.listSize(); } }
@Override public boolean visit(TypeParameter node) { if (hasFlag(TYPES, fFlags) && node.getStartPosition() < fPosition) { fBreak= fRequestor.acceptBinding(node.getName().resolveBinding()); } return !fBreak; }
void accept0(ASTVisitor visitor) { boolean visitChildren = visitor.visit(this); if (visitChildren) { // visit children in normal left to right reading order if (this.ast.apiLevel >= AST.JLS8) { acceptChildren(visitor, this.modifiers); } acceptChild(visitor, getName()); acceptChildren(visitor, this.typeBounds); } visitor.endVisit(this); }
void accept0(ASTVisitor visitor) { boolean visitChildren = visitor.visit(this); if (visitChildren) { // visit children in normal left to right reading order if (this.ast.apiLevel >= AST.JLS8_INTERNAL) { acceptChildren(visitor, this.modifiers); } acceptChild(visitor, getName()); acceptChildren(visitor, this.typeBounds); } visitor.endVisit(this); }
void accept0(ASTVisitor visitor) { boolean visitChildren = visitor.visit(this); if (visitChildren) { // visit children in normal left to right reading order if (this.ast.apiLevel >= AST.JLS8) { acceptChildren(visitor, this.modifiers); } acceptChild(visitor, getName()); acceptChildren(visitor, this.typeBounds); } visitor.endVisit(this); }
private CSTypeParameter mapTypeParameter(TypeParameter item) { CSTypeParameter tp = new CSTypeParameter(identifier(item.getName())); ITypeBinding tb = item.resolveBinding (); if (tb != null) { ITypeBinding superc = mapTypeParameterExtendedType (tb); if (superc != null) tp.superClass(mappedTypeReference(superc)); } return tp; }