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.
Type | Name and description |
---|---|
void |
addMetaBeanProperty(MetaBeanProperty metaBeanProperty) Adds a new MetaBeanProperty to the MetaClass |
void |
addMetaMethod(MetaMethod metaMethod) Adds a new MetaMethod to the MetaClass |
void |
addNewInstanceMethod(Method method) adds a new instance method to this MetaClass. |
void |
addNewStaticMethod(Method method) adds a new static method to this MetaClass. |
boolean |
isModified() Return whether the MetaClass has been modified or not |
Methods inherited from class | Name |
---|---|
interface MetaClass |
getAttribute, getClassNode, getMetaMethods, getMethods, getProperties, getProperty, initialize, invokeMethod, invokeMissingMethod, invokeMissingProperty, pickMethod, selectConstructorAndTransformArguments, setAttribute, setProperty |
interface MetaObjectProtocol |
getAttribute, getMetaMethod, getMetaProperty, getMethods, getProperties, getProperty, getStaticMetaMethod, getTheClass, hasProperty, invokeConstructor, invokeMethod, invokeMethod, invokeStaticMethod, respondsTo, respondsTo, setAttribute, setProperty |
Adds a new MetaBeanProperty to the MetaClass
metaBeanProperty
- The MetaBeanProperty instanceAdds a new MetaMethod to the MetaClass
metaMethod
- The MetaMethod to addadds a new instance method to this MetaClass. Instance methods are able to overwrite the original methods of the class. Calling this method should not be done after initialise was called.
method
- the method to be addedadds a new static method to this MetaClass. This is only possible as long as initialise was not called.
method
- the method to be addedReturn whether the MetaClass has been modified or not