Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2004-2010 Oracle Corporation. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: Kohsuke Kawaguchi /
package org.kohsuke.stapler.export;
Property based on java.lang.reflect.Field.

Kohsuke Kawaguchi
class FieldProperty extends Property {
    private final Field field;
    public FieldProperty(Model ownerField fieldExported exported) {
        super(owner,field.getName(), exported);
        this. = field;
    public Type getGenericType() {
        return .getGenericType();
    public Class getType() {
        return .getType();
    public String getJavadoc() {
        return .getJavadoc().getProperty(.getName());
    protected Object getValue(Object objectthrows IllegalAccessException {
        return .get(object);
New to GrepCode? Check out our FAQ X