128
129 /**
130 * Return true if this type is a java.rmi.RemoteException
131 * or one of its subclasses. Result if valid iff isException()
132 * returns true.
133 */
134 public boolean isRemoteExceptionOrSubclass () {
135 return isRemoteExceptionOrSubclass;
136 }
137
138 /**
139 * Return true if this type is exactly
140 * org.omg.CORBA.UserException.
141 */
142 public boolean isCORBAUserException () {
143 return isCORBAUserException;
144 }
145
146 /**
147 * Return true if this type implements
148 * isIDLEntity() && isException().
149 */
150 public boolean isIDLEntityException () {
151 return isIDLEntity() && isException();
152 }
153 /**
154 * Return true if isIDLEntity() && !isValueBase()
155 * && !isAbstractBase() && !isCORBAObject()
156 * && !isIDLEntityException().
157 */
158 public boolean isBoxed () {
159 return (isIDLEntity() && !isValueBase() &&
160 !isAbstractBase() && !isCORBAObject() &&
161 !isIDLEntityException());
162 }
163
164 /**
165 * If this type represents an exception, return the
166 * IDL name including the "Ex" mangling, otherwise
167 * return null.
168 */
169 public String getIDLExceptionName () {
170 return idlExceptionName;
171 }
172
173 /**
174 * If this type represents an exception, return the
175 * qualified IDL name including the "Ex" mangling,
176 * otherwise return null.
1967 */
1968 public String getIDLName() {
1969 return idlName;
1970 }
1971
1972 /**
1973 * Return the type of this method.
1974 */
1975 public sun.tools.java.Type getType() {
1976 return memberDef.getType();
1977 }
1978
1979 /**
1980 * Return true if this is a constructor.
1981 */
1982 public boolean isConstructor () {
1983 return memberDef.isConstructor();
1984 }
1985
1986 /**
1987 * Return true if this is NOT a constructor && is not
1988 * an attribute.
1989 */
1990 public boolean isNormalMethod () {
1991 return (!memberDef.isConstructor()) && attributeKind == ATTRIBUTE_NONE;
1992 }
1993
1994 /**
1995 * Get the return type of this method. May be null.
1996 */
1997 public Type getReturnType() {
1998 return returnType;
1999 }
2000
2001 /**
2002 * Return the argument types of this method.
2003 */
2004 public Type[] getArguments() {
2005 return (Type[]) arguments.clone();
2006 }
2007
|
128
129 /**
130 * Return true if this type is a java.rmi.RemoteException
131 * or one of its subclasses. Result if valid iff isException()
132 * returns true.
133 */
134 public boolean isRemoteExceptionOrSubclass () {
135 return isRemoteExceptionOrSubclass;
136 }
137
138 /**
139 * Return true if this type is exactly
140 * org.omg.CORBA.UserException.
141 */
142 public boolean isCORBAUserException () {
143 return isCORBAUserException;
144 }
145
146 /**
147 * Return true if this type implements
148 * {@code isIDLEntity() && isException()}.
149 */
150 public boolean isIDLEntityException () {
151 return isIDLEntity() && isException();
152 }
153 /**
154 * Return true if {@code isIDLEntity() && !isValueBase()
155 * && !isAbstractBase() && !isCORBAObject()
156 * && !isIDLEntityException()}.
157 */
158 public boolean isBoxed () {
159 return (isIDLEntity() && !isValueBase() &&
160 !isAbstractBase() && !isCORBAObject() &&
161 !isIDLEntityException());
162 }
163
164 /**
165 * If this type represents an exception, return the
166 * IDL name including the "Ex" mangling, otherwise
167 * return null.
168 */
169 public String getIDLExceptionName () {
170 return idlExceptionName;
171 }
172
173 /**
174 * If this type represents an exception, return the
175 * qualified IDL name including the "Ex" mangling,
176 * otherwise return null.
1967 */
1968 public String getIDLName() {
1969 return idlName;
1970 }
1971
1972 /**
1973 * Return the type of this method.
1974 */
1975 public sun.tools.java.Type getType() {
1976 return memberDef.getType();
1977 }
1978
1979 /**
1980 * Return true if this is a constructor.
1981 */
1982 public boolean isConstructor () {
1983 return memberDef.isConstructor();
1984 }
1985
1986 /**
1987 * Return true if this is NOT a constructor {@code &&} is not
1988 * an attribute.
1989 */
1990 public boolean isNormalMethod () {
1991 return (!memberDef.isConstructor()) && attributeKind == ATTRIBUTE_NONE;
1992 }
1993
1994 /**
1995 * Get the return type of this method. May be null.
1996 */
1997 public Type getReturnType() {
1998 return returnType;
1999 }
2000
2001 /**
2002 * Return the argument types of this method.
2003 */
2004 public Type[] getArguments() {
2005 return (Type[]) arguments.clone();
2006 }
2007
|