Business Objects
Quark Platform Documentation
Version 1.7.0_0
Business Objects

org.openquark.cal.compiler
Class AdjunctSource.FromSourceModel

java.lang.Object
  extended by org.openquark.cal.compiler.AdjunctSource
      extended by org.openquark.cal.compiler.AdjunctSource.FromSourceModel
Enclosing class:
AdjunctSource

public static class AdjunctSource.FromSourceModel
extends AdjunctSource

Encapsulates the definition of an adjunct in source model form.

Author:
Joseph Wong

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openquark.cal.compiler.AdjunctSource
AdjunctSource.FromSourceModel, AdjunctSource.FromText
 
Constructor Summary
AdjunctSource.FromSourceModel(SourceModel.TopLevelSourceElement element)
          Constructs an adjunct from a single source element.
AdjunctSource.FromSourceModel(SourceModel.TopLevelSourceElement[] elements)
          Constructs an adjunct from an array of source elements.
 
Method Summary
 SourceModel.TopLevelSourceElement getElement(int i)
           
 int getNElements()
           
 String toString()
          Converts the adjunct into its source text representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdjunctSource.FromSourceModel

public AdjunctSource.FromSourceModel(SourceModel.TopLevelSourceElement element)
Constructs an adjunct from a single source element.

Parameters:
element - the sole source element of the adjunct

AdjunctSource.FromSourceModel

public AdjunctSource.FromSourceModel(SourceModel.TopLevelSourceElement[] elements)
Constructs an adjunct from an array of source elements.

Parameters:
elements - the source elements of the adjunct
Method Detail

toString

public String toString()
Converts the adjunct into its source text representation.

Specified by:
toString in class AdjunctSource
Returns:
the source text representation of this adjunct

getNElements

public int getNElements()
Returns:
the number of elements in this adjunct

getElement

public SourceModel.TopLevelSourceElement getElement(int i)
Parameters:
i - the index for the desired element
Returns:
the ith element of this adjunct

Business Objects
Quark Platform Documentation
Version 1.7.0_0
Business Objects

Copyright © 2007 Business Objects. All rights reserved.