Java Code Examples for com.sun.codemodel.JDefinedClass.staticRef()

The following are Jave code examples for showing how to use staticRef() of the com.sun.codemodel.JDefinedClass class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: GitHub   File: DynamicPropertiesRule.java   View Source Code Vote up 4 votes
JFieldRef getOrAddNotFoundVar(JDefinedClass jclass) {
    jclass.field(PROTECTED | STATIC | FINAL, Object.class, NOT_FOUND_VALUE_FIELD,
            _new(jclass.owner()._ref(Object.class)));
    return jclass.staticRef(NOT_FOUND_VALUE_FIELD);
}