Main Content

methods

클래스 메서드(Class Method) 이름

설명

예제

methods ClassName ClassName 클래스에 대한 메서드의 이름을 표시합니다. ClassName이 MATLAB® 클래스나 Java® 클래스 중 하나인 경우, methods는 슈퍼클래스에서 상속된 메서드를 포함하여 숨겨지지 않은 퍼블릭 메서드만 표시합니다.

예제

methods(obj)obj의 클래스에 대한 메서드의 이름을 표시합니다.

예제

methods(___,'-full')은 상속 정보를 포함하여 메서드에 대한 전체 설명을 표시하고 MATLAB 메서드와 Java 메서드의 경우 메서드 특성과 메서드 시그니처를 표시합니다. 이 옵션은 시그니처가 다른 중복된 메서드 이름은 제거하지 않습니다. 이 옵션은 MATLAB 7.6 이전에 정의된 클래스에서는 사용할 수 없습니다.

예제

m = methods(___)는 문자형 벡터로 구성된 셀형 배열로 메서드 이름을 반환합니다.

예제

모두 축소

MException 클래스의 퍼블릭 메서드 표시

methods MException
Methods for class MException:

MException     addCause       addCorrection  eq             getReport      isequal        ne             rethrow        throw          throwAsCaller  

Static methods:

last           

java.lang.String 객체를 생성하고 해당 객체의 퍼블릭 메서드 이름을 표시합니다.

s = java.lang.String;
methods(s);
Methods for class java.lang.String:

String               charAt               chars                codePointAt          codePointBefore      codePointCount       codePoints           compareTo            compareToIgnoreCase  concat               contains             contentEquals        copyValueOf          endsWith             equals               equalsIgnoreCase     format               getBytes             getChars             getClass             hashCode             indexOf              intern               isEmpty              join                 lastIndexOf          length               matches              notify               notifyAll            offsetByCodePoints   regionMatches        replace              replaceAll           replaceFirst         split                startsWith           subSequence          substring            toCharArray          toLowerCase          toString             toUpperCase          trim                 valueOf              wait                 

MException 클래스의 퍼블릭 메서드를 나열하고 메서드 시그니처를 표시합니다.

methods('MException','-full')
Methods for class MException:

MException lhs1 MException(asciiString rhs1, rhs2)
MException scalar lhs1 addCause(MException scalar rhs1, MException scalar rhs2)
varargout addCorrection(MException rhs1, Correction)
logical scalar lhs1 eq(MException scalar rhs1, MException scalar rhs2)
logical lhs1 eq(MException rhs1, MException rhs2)
logical lhs1 eq(rhs1, rhs2)
unicodeString lhs1 getReport(MException scalar rhs1, asciiString rhs2, rhs3)
logical scalar lhs1 isequal(rhs1, rhs2)
logical scalar lhs1 isequal(MException rhs1, MException rhs2)
logical scalar lhs1 isequal(MException scalar rhs1, MException scalar rhs2)
Static MException scalar lhs1 last(ustringToString scalar rhs1)
logical lhs1 ne(MException rhs1, MException rhs2)
logical lhs1 ne(rhs1, rhs2)
logical scalar lhs1 ne(MException scalar rhs1, MException scalar rhs2)
rethrow(MException scalar rhs1)
throw(MException scalar rhs1)
throwAsCaller(MException scalar rhs1)

MException 클래스의 퍼블릭 메서드 이름을 셀형 배열로 저장합니다. -full 옵션을 사용하여 메서드 시그니처를 포함합니다.

m = methods('MException','-full');

입력 인수

모두 축소

클래스 이름으로, 문자형 벡터 또는 string형 스칼라로 지정됩니다.

데이터형: char | string

입력 인수와 출력 인수를 포함하여, 메서드에 대한 전체 설명을 표시합니다.

데이터형: char

출력 인수

모두 축소

문자형 벡터로 구성된 셀형 배열로 반환되는 메서드 이름입니다.

세부 정보

모두 축소

언어 종속성

이 함수는 Microsoft® .NET Framework 기반 클래스의 제네릭 메서드를 표시하지 않습니다. 제네릭 메서드에 대한 내용은 제품 문서를 참조하십시오.

메서드 키워드

단어 methods는 MATLAB 클래스 정의 키워드이기도 합니다. 클래스 정의 키워드에 대한 자세한 내용은 classdef를 참조하십시오.

목록에 있는 메서드

이 함수는 모든 메서드 디렉터리의 메서드를 한번에 보고하고 중복된 메서드 이름을 목록에서 모두 제거합니다.

확장 기능

버전 내역

R2006a 이전에 개발됨

참고 항목

| |

도움말 항목