1 /* 2 * Copyright 1999-2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 /* 17 * $Id: Member.java,v 1.6 2004/02/17 04:24:21 minchau Exp $ 18 */ 19 package com.sun.org.apache.xml.internal.utils.synthetic.reflection; 20 21 import com.sun.org.apache.xml.internal.utils.synthetic.SynthesisException; 22 23 /** 24 * Member is an interface that reflects identifying 25 * information about a single member (a field or a method) 26 * or a constructor. 27 * <p> 28 * Note that this is <strong>not</strong> currently derived from 29 * java.lang.reflect.Member, due to questions about how to handle 30 * declarignClass. 31 * 32 * @see com.sun.org.apache.xml.internal.utils.synthetic.Class 33 * @xsl.usage internal 34 */ 35 public interface Member 36 { 37 38 /** 39 * Returns the Class object representing the class or 40 * interface that declares the member or constructor 41 * represented by this Member. 42 * 43 */ 44 public abstract com.sun.org.apache.xml.internal.utils.synthetic.Class getDeclaringClass(); 45 46 /** 47 * Returns the Java language modifiers for the 48 * member or constructor represented by this 49 * Member, as an integer. The Modifier class should 50 * be used to decode the modifiers in the integer. 51 * 52 */ 53 public abstract int getModifiers(); 54 55 /** 56 * Returns the Class object representing the class or 57 * interface that declares the member or constructor 58 * represented by this Member. 59 * 60 * @param declaringClass 61 * 62 * @throws SynthesisException 63 */ 64 public abstract void setDeclaringClass( 65 com.sun.org.apache.xml.internal.utils.synthetic.Class declaringClass) 66 throws SynthesisException; 67 68 /** 69 * Returns the Java language modifiers for the 70 * member or constructor represented by this 71 * Member, as an integer. The Modifier class should 72 * be used to decode the modifiers in the integer. 73 * 74 * @param modifiers 75 * 76 * @throws SynthesisException 77 */ 78 public abstract void setModifiers(int modifiers) throws SynthesisException; 79 } 80