@Override public ILocalVariable[] getParameters() throws JavaModelException { ILocalVariable[] arguments = ((SourceMethodElementInfo) getElementInfo()).arguments; if (arguments == null) return LocalVariable.NO_LOCAL_VARIABLES; return arguments; } /**
@Override public ITypeParameter[] getTypeParameters() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return info.typeParameters; } @Override
public ITypeParameter[] getTypeParameters() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return info.typeParameters; } public ILocalVariable[] getParameters() throws JavaModelException {
public ITypeParameter[] getTypeParameters() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return info.typeParameters; } public ILocalVariable[] getParameters() throws JavaModelException {
public ILocalVariable[] getParameters() throws JavaModelException { ILocalVariable[] arguments = ((SourceMethodElementInfo) getElementInfo()).arguments; if (arguments == null) return LocalVariable.NO_LOCAL_VARIABLES; return arguments; } /**
public ILocalVariable[] getParameters() throws JavaModelException { ILocalVariable[] arguments = ((SourceMethodElementInfo) getElementInfo()).arguments; if (arguments == null) return LocalVariable.NO_LOCAL_VARIABLES; return arguments; } /**
public IMemberValuePair getDefaultValue() throws JavaModelException { SourceMethodElementInfo sourceMethodInfo = (SourceMethodElementInfo) getElementInfo(); if (sourceMethodInfo.isAnnotationMethod()) { return ((SourceAnnotationMethodInfo) sourceMethodInfo).defaultValue; } return null; } /**
@Override public IMemberValuePair getDefaultValue() throws JavaModelException { SourceMethodElementInfo sourceMethodInfo = (SourceMethodElementInfo) getElementInfo(); if (sourceMethodInfo.isAnnotationMethod()) { return ((SourceAnnotationMethodInfo) sourceMethodInfo).defaultValue; } return null; } /**
/** * @see IMethod */ public String[] getParameterNames() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); char[][] names= info.getArgumentNames(); return CharOperation.toStrings(names); } /**
/** * @see IMethod */ public String getReturnType() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return Signature.createTypeSignature(info.getReturnTypeName(), false); } /**
/** * @see IMethod */ @Override public String[] getExceptionTypes() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); char[][] exs= info.getExceptionTypeNames(); return CompilationUnitStructureRequestor.convertTypeNamesToSigs(exs); } /**
/** * @see IMethod */ public String[] getExceptionTypes() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); char[][] exs= info.getExceptionTypeNames(); return CompilationUnitStructureRequestor.convertTypeNamesToSigs(exs); } /**
/** * @see IMethod */ public String[] getExceptionTypes() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); char[][] exs= info.getExceptionTypeNames(); return CompilationUnitStructureRequestor.convertTypeNamesToSigs(exs); } /**
/** * @see IMethod */ public String getReturnType() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return Signature.createTypeSignature(info.getReturnTypeName(), false); } /**
/** * @see IMethod */ public String[] getParameterNames() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); char[][] names= info.getArgumentNames(); return CharOperation.toStrings(names); } /**
/** * @see IMethod */ public boolean isConstructor() throws JavaModelException { if (!getElementName().equals(this.parent.getElementName())) { // faster than reaching the info return false; } SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return info.isConstructor(); } /**
/** * @see IMethod */ public boolean isConstructor() throws JavaModelException { if (!getElementName().equals(this.parent.getElementName())) { // faster than reaching the info return false; } SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return info.isConstructor(); } /**
/** * @see IMethod */ public String getSignature() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return Signature.createMethodSignature(this.parameterTypes, Signature.createTypeSignature(info.getReturnTypeName(), false)); } /**
/** * @see IMethod */ @Override public String getSignature() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return Signature.createMethodSignature(this.parameterTypes, Signature.createTypeSignature(info.getReturnTypeName(), false)); } /**
/** * @see IMethod */ public String getSignature() throws JavaModelException { SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo(); return Signature.createMethodSignature(this.parameterTypes, Signature.createTypeSignature(info.getReturnTypeName(), false)); } /**