Top Description Fields Constructors Methods
org.glassfish.pfl.dynamic.codegen.impl

public Class AttributedObjectBase

extends Object
implements AttributedObject, CopyInterceptor
Class Inheritance
All Implemented Interfaces
org.glassfish.pfl.dynamic.copyobject.spi.CopyInterceptor, org.glassfish.pfl.dynamic.codegen.impl.AttributedObject
Known Direct Subclasses
org.glassfish.pfl.dynamic.codegen.impl.NodeBase
Imports
java.util.ArrayList, .List, org.glassfish.pfl.dynamic.copyobject.spi.Copy, .CopyInterceptor, .CopyType

An implementation of the AttributedObject interface. This implementation supports lazy copying of AttributedObject instances.

Field Summary

Modifier and TypeField and Description
private ArrayList<Object>
private AttributedObjectBase

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final List<Object>
attributes()

Implements org.glassfish.pfl.dynamic.codegen.impl.AttributedObject.attributes.

Internal method for dynamic attribute support.

private void
ensure(int index)

public final Object
get(int index)

Implements org.glassfish.pfl.dynamic.codegen.impl.AttributedObject.get.

Internal method for dynamic attribute support.

public void
public void
public final void
set(int index, Object obj)

Implements org.glassfish.pfl.dynamic.codegen.impl.AttributedObject.set.

Internal method for dynamic attribute support.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributesback to summary
private ArrayList<Object> attributes
Annotations
@Copy:NULL
delegateback to summary
private AttributedObjectBase delegate
Annotations
@Copy:SOURCE

Constructor Detail

AttributedObjectBaseback to summary
public AttributedObjectBase()

Method Detail

attributesback to summary
public final List<Object> attributes()

Implements org.glassfish.pfl.dynamic.codegen.impl.AttributedObject.attributes.

Doc from org.glassfish.pfl.dynamic.codegen.impl.AttributedObject.attributes.

Internal method for dynamic attribute support. Return all attributes for this node (may be null).

ensureback to summary
private void ensure(int index)
getback to summary
public final Object get(int index)

Implements org.glassfish.pfl.dynamic.codegen.impl.AttributedObject.get.

Doc from org.glassfish.pfl.dynamic.codegen.impl.AttributedObject.get.

Internal method for dynamic attribute support. Return the value of the attribute at index. If the attribute at index is not set, set it to the default value and return the default.

postCopyback to summary
public void postCopy()

Implements org.glassfish.pfl.dynamic.copyobject.spi.CopyInterceptor.postCopy.

preCopyback to summary
public void preCopy()

Implements org.glassfish.pfl.dynamic.copyobject.spi.CopyInterceptor.preCopy.

setback to summary
public final void set(int index, Object obj)

Implements org.glassfish.pfl.dynamic.codegen.impl.AttributedObject.set.

Doc from org.glassfish.pfl.dynamic.codegen.impl.AttributedObject.set.

Internal method for dynamic attribute support. Set the attribute at index to obj.