/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package java.lang.reflect;
import java.lang.annotation.Annotation;
/**
* Stub implementation of Field. The actual implementation
* is in Field.h and Field.m, so the declared fields in this
* class should match the actual fields implemented in order
* to catch unsupported API references.
*
* @see Object
*/
public class Field extends AccessibleObject implements Member {
public String getName() {
return null;
}
public int getModifiers() {
return 0;
}
public Class<?> getType() {
return null;
}
public Type getGenericType() {
return null;
}
public Class<?> getDeclaringClass() {
return null;
}
public Object get(Object o) throws IllegalArgumentException, IllegalAccessException {
return null;
}
public boolean getBoolean(Object o) throws IllegalArgumentException, IllegalAccessException {
return false;
}
public byte getByte(Object o) throws IllegalArgumentException, IllegalAccessException {
return 0;
}
public char getChar(Object o) throws IllegalArgumentException, IllegalAccessException {
return 0;
}
public double getDouble(Object o) throws IllegalArgumentException, IllegalAccessException {
return 0.0;
}
public float getFloat(Object o) throws IllegalArgumentException, IllegalAccessException {
return 0.0f;
}
public int getInt(Object o) throws IllegalArgumentException, IllegalAccessException {
return 0;
}
public long getLong(Object o) throws IllegalArgumentException, IllegalAccessException {
return 0L;
}
public short getShort(Object o) throws IllegalArgumentException, IllegalAccessException {
return 0;
}
public void set(Object o, Object value) throws IllegalArgumentException,
IllegalAccessException {}
public void setBoolean(Object o, boolean b) throws IllegalArgumentException, IllegalAccessException {}
public void setByte(Object o, byte b) throws IllegalArgumentException, IllegalAccessException {}
public void setChar(Object o, char c) throws IllegalArgumentException, IllegalAccessException {}
public void setDouble(Object o, double d) throws IllegalArgumentException, IllegalAccessException {}
public void setFloat(Object o, float f) throws IllegalArgumentException, IllegalAccessException {}
public void setInt(Object o, int i) throws IllegalArgumentException, IllegalAccessException {}
public void setLong(Object o, long l) throws IllegalArgumentException, IllegalAccessException {}
public void setShort(Object o, short s) throws IllegalArgumentException, IllegalAccessException {}
public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
return null;
}
public Annotation[] getDeclaredAnnotations() {
return null;
}
public boolean isSynthetic() {
return false;
}
public boolean isEnumConstant() {
return false;
}
public String toGenericString() {
return null;
}
}