public class PrefixedNut extends NutWrapper
This class wraps a Nut
that should be named with a particular prefix. The prefix could be
a path or not.
Constructor and Description |
---|
PrefixedNut(ConvertibleNut nut,
String prefixPath)
Builds a new instance.
|
PrefixedNut(ConvertibleNut nut,
String prefix,
Boolean asPath)
Builds a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name potentially altered by other components like transformers.
|
addReferencedNut, addTransformer, getNutType, getOriginalNuts, getReadyCallbacks, getReferencedNuts, getTransformers, isCompressed, isDynamic, isSubResource, isTransformed, onReady, openStream, setIsCompressed, setIsSubResource, setNutName, setNutType, transform
equals, getInitialName, getInitialNutType, getParentFile, getProxyUri, getVersionNumber, hashCode, setProxyUri, setVersionNumber, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getInitialName, getInitialNutType, getParentFile, getProxyUri, getVersionNumber, setProxyUri
public PrefixedNut(ConvertibleNut nut, String prefix, Boolean asPath)
Builds a new instance.
nut
- the nut to wrapprefix
- the prefixasPath
- if the prefix is a pathpublic PrefixedNut(ConvertibleNut nut, String prefixPath)
Builds a new instance.
nut
- the nut to wrapprefixPath
- the prefix pathpublic String getName()
Returns the name potentially altered by other components like transformers.
getName
in interface ConvertibleNut
getName
in class NutWrapper
Copyright © 2012-2015. All Rights Reserved.