org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.util
Class Elements

java.lang.Object
  extended by org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.util.Elements

public class Elements
extends java.lang.Object

Author:
Felix Project Team

Constructor Summary
Elements()
           
 
Method Summary
static org.apache.felix.ipojo.metadata.Element buildElement(org.objectweb.asm.Type type)
          Build the Element object from the given descriptor.
static org.apache.felix.ipojo.metadata.Element getPropertiesElement(ComponentWorkbench workbench)
          Return the Element named properties, creates one if missing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Elements

public Elements()
Method Detail

buildElement

public static org.apache.felix.ipojo.metadata.Element buildElement(org.objectweb.asm.Type type)
Build the Element object from the given descriptor. It splits the annotation's classname in 2 parts (up to the last '.') first part (package's name) becomes the Element's namespace, and second part (class simple name) becomes the Element's name.

Parameters:
type - annotation descriptor
Returns:
the new element

getPropertiesElement

public static org.apache.felix.ipojo.metadata.Element getPropertiesElement(ComponentWorkbench workbench)
Return the Element named properties, creates one if missing.

Parameters:
workbench - source for search
Returns:
the properties Element (never null).


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.